Simulant  21.12-574
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
Public Attributes | Static Public Attributes | List of all members
smlt::ui::UIConfig Struct Reference

Public Attributes

std::string font_family_ = ""
 
Px font_size_ = Px(0)
 
Rem line_height_ = Rem(1.5f)
 
Colour foreground_colour_ = Colour::from_bytes(40, 40, 40, 255)
 
Colour background_colour_ = Colour::from_bytes(53, 53, 53, 255)
 
Colour text_colour_ = Colour::from_bytes(219, 219, 219, 255)
 
Colour highlight_colour_ = Colour::from_bytes(0, 51, 102, 255)
 
ResizeMode label_resize_mode_ = RESIZE_MODE_FIT_CONTENT
 
ResizeMode button_resize_mode_ = RESIZE_MODE_FIT_CONTENT
 
ResizeMode progress_bar_resize_mode_ = RESIZE_MODE_FIXED
 
uint8_t scrollbar_width_ = 16
 
Colour scrollbar_background_colour_ = background_colour_
 
Colour scrollbar_foreground_colour_ = foreground_colour_
 
uint16_t button_height_ = 36
 
uint16_t button_width_ = 0
 
UInt4 label_padding_ = { Px(4), Px(4), Px(4), Px(4) }
 
PackedColour4444 label_background_colour_ = Colour::NONE
 
PackedColour4444 label_foreground_colour_ = Colour::NONE
 
PackedColour4444 label_border_colour_ = Colour::NONE
 
PackedColour4444 label_text_colour_ = text_colour_
 
UInt4 button_padding_ = { Px(30), Px(30), Px(20), Px(20) }
 
PackedColour4444 button_background_colour_ = highlight_colour_
 
PackedColour4444 button_foreground_colour_ = Colour::NONE
 
PackedColour4444 button_text_colour_ = text_colour_
 
PackedColour4444 button_border_colour_ = Colour::NONE
 
Px button_border_width_ = Px(0)
 
Px button_border_radius_ = Px(4)
 
UInt4 image_padding_ = {Px(), Px(), Px(), Px()}
 
Px image_border_width_ = Px(0)
 
PackedColour4444 image_background_colour_ = smlt::Colour::WHITE
 
PackedColour4444 image_foreground_colour_ = smlt::Colour::NONE
 
PackedColour4444 image_text_colour_ = smlt::Colour::NONE
 
PackedColour4444 progress_bar_foreground_colour_ = highlight_colour_
 
PackedColour4444 progress_bar_background_colour_ = background_colour_
 
PackedColour4444 progress_bar_border_colour_ = foreground_colour_
 
PackedColour4444 progress_bar_text_colour_ = text_colour_
 
Px progress_bar_border_width_ = Px(2)
 
Px progress_bar_width_ = Px(100)
 
Rem progress_bar_height_ = Rem(1.5f)
 
PackedColour4444 frame_background_colour_ = background_colour_
 
PackedColour4444 frame_titlebar_colour_ = foreground_colour_
 
PackedColour4444 frame_text_colour_ = text_colour_
 
Px frame_border_width_ = Px(2)
 
PackedColour4444 frame_border_colour_ = foreground_colour_
 
OverflowType default_overflow_ = OVERFLOW_TYPE_HIDDEN
 
ResizeMode default_resize_mode_ = RESIZE_MODE_FIXED
 

Static Public Attributes

static const Colour ALICE_BLUE = Colour(0.9375, 0.96875, 0.99609375, 1.0)
 
static const Colour LIGHT_GREY = Colour(0.82421875, 0.82421875, 0.82421875, 1.0)
 
static const Colour DODGER_BLUE = Colour(0.1171875, 0.5625, 0.99609375, 1.0)
 

The documentation for this struct was generated from the following files: