Defines the appearance of a GUI_BaseElement or one of its subclasses.
More...
Defines the appearance of a GUI_BaseElement or one of its subclasses.
- Parameters
-
inherit_from | A parent style that serves as a default configuration for all properties of this style |
GUI_COLOR GUI_ElementStyle::BackgroundColor |
( |
| ) |
|
|
inline |
- Returns
- The background color of this style
- Note
- Not to be confused with the fill color!
- See also
- STYLE_PROPERTIES
- Returns
- The line color of this style
int GUI_ElementStyle::CornerRadius |
( |
| ) |
|
|
inline |
- Returns
- The corner radius of the style, in pixel
- Returns
- The fill color of this style
DWORD GUI_ElementStyle::GetCorners |
( |
| ) |
|
- Returns
- A bitmask defining which corners of the element should be rounded
- See also
- CORNERS
GUI_font * GUI_ElementStyle::GetFont |
( |
| ) |
|
- Returns
- The font belonging to this style
- Returns
- the hilight color of this style
int GUI_ElementStyle::LineWidth |
( |
| ) |
|
|
inline |
- Returns
- THe line width of the style, in pixel
int GUI_ElementStyle::MarginBottom |
( |
| ) |
|
|
inline |
- Returns
- the bottom margin in pixel
int GUI_ElementStyle::MarginLeft |
( |
| ) |
|
|
inline |
- Returns
- the left margin in pixel
int GUI_ElementStyle::MarginRight |
( |
| ) |
|
|
inline |
- Returns
- the right margin in pixel
int GUI_ElementStyle::MarginTop |
( |
| ) |
|
|
inline |
- Returns
- the top margin in pixel
General setter for properties that takes a string containing the value.
- Parameters
-
field | The property to set |
value | The value for the property as a string. Formatting depends on the property being set |
void GUI_ElementStyle::SetBgColor |
( |
GUI_COLOR |
color | ) |
|
|
inline |
void GUI_ElementStyle::SetColor |
( |
GUI_COLOR |
color | ) |
|
|
inline |
void GUI_ElementStyle::SetCornerRadius |
( |
int |
radius | ) |
|
|
inline |
Sets the corner radius in pixel.
- Parameters
-
radius | the radius by which designated corners will be rounded |
- See also
- STYLE_PROPERTIES
void GUI_ElementStyle::SetFillColor |
( |
GUI_COLOR |
color | ) |
|
|
inline |
void GUI_ElementStyle::SetFont |
( |
GUI_font * |
font | ) |
|
Sets the font to be used for this style.
- Parameters
-
font | A pointer to an already created font that will be used to print any text in the element |
void GUI_ElementStyle::SetHilightColor |
( |
GUI_COLOR |
color | ) |
|
|
inline |
void GUI_ElementStyle::SetMarginBottom |
( |
int |
margin | ) |
|
|
inline |
Sets the bottom margin in pixel.
- Parameters
-
margin | The margin on which children cannot draw, from the bottom of the element |
- See also
- STYLE_PROPERTIES
void GUI_ElementStyle::SetMarginLeft |
( |
int |
margin | ) |
|
|
inline |
Sets the left margin in pixel.
- Parameters
-
margin | The margin on which children cannot draw, from the left edge of the element |
- See also
- STYLE_PROPERTIES
void GUI_ElementStyle::SetMarginRight |
( |
int |
margin | ) |
|
|
inline |
Sets the right margin in pixel.
- Parameters
-
margin | The margin on which children cannot draw, from the right edge of the element |
- See also
- STYLE_PROPERTIES
void GUI_ElementStyle::SetMarginTop |
( |
int |
margin | ) |
|
|
inline |
Sets the top margin in pixel.
- Parameters
-
margin | The margin on which children cannot draw, from the top of the element |
- See also
- STYLE_PROPERTIES
The documentation for this class was generated from the following files:
- C:/Orbiter2016/Orbitersdk/IMS2/GUI_ElementStyle.h
- C:/Orbiter2016/Orbitersdk/IMS2/GUI_ElementStyle.cpp