TGUI
0.7.8
|
Public Member Functions | |
ChildWindowRenderer (ChildWindow *childWindow) | |
Constructor. More... | |
virtual void | setProperty (std::string property, const std::string &value) override |
Change a property of the renderer. More... | |
virtual void | setProperty (std::string property, ObjectConverter &&value) override |
Change a property of the renderer. More... | |
virtual ObjectConverter | getProperty (std::string property) const override |
Retrieve the value of a certain property. More... | |
virtual std::map< std::string, ObjectConverter > | getPropertyValuePairs () const override |
Get a map with all properties and their values. More... | |
void | setTitleBarColor (const Color &color) |
Changes the color of the title bar. More... | |
void | setTitleBarHeight (float height) |
Change the height of the title bar. More... | |
void | setTitleColor (const Color &color) |
Changes the color of the title that is displayed in the title bar of the child window. More... | |
void | setBorderColor (const Color &borderColor) |
Set the border color. More... | |
virtual void | setBorders (const Borders &borders) override |
Changes the size of the borders. More... | |
void | setDistanceToSide (float distanceToSide) |
Changes the distance between the title and the side of the title bar. More... | |
void | setPaddingBetweenButtons (float paddingBetweenButtons) |
Changes the distance between the title buttons if multiple exist. More... | |
void | setBackgroundColor (const Color &backgroundColor) |
Changes the background color of the child window. More... | |
void | setTitleBarTexture (const Texture &texture) |
Change the image of the title bar. More... | |
std::shared_ptr< ButtonRenderer > | getCloseButton () const |
Returns the renderer of the close button. More... | |
std::shared_ptr< ButtonRenderer > | getMinimizeButton () const |
Returns the renderer of the minimize button. More... | |
std::shared_ptr< ButtonRenderer > | getMaximizeButton () const |
Returns the renderer of the maximize button. More... | |
virtual void | setBorders (const Borders &borders) |
Changes the size of the borders. More... | |
void | setBorders (float leftBorder, float topBorder, float rightBorder, float bottomBorder) |
Changes the size of the borders. More... | |
void | setBorders (float width, float height) |
Changes the size of the borders. More... | |
Public Member Functions inherited from tgui::WidgetRenderer | |
virtual | ~WidgetRenderer () |
Virtual destructor. | |
Public Member Functions inherited from tgui::WidgetBorders | |
void | setBorders (float leftBorder, float topBorder, float rightBorder, float bottomBorder) |
Changes the size of the borders. More... | |
void | setBorders (float width, float height) |
Changes the size of the borders. More... | |
virtual Borders | getBorders () const |
Returns the size of the borders as a tgui::Borders. More... | |
|
inline |
Constructor.
childWindow | The child window that is connected to the renderer |
std::shared_ptr< ButtonRenderer > tgui::ChildWindowRenderer::getCloseButton | ( | ) | const |
Returns the renderer of the close button.
std::shared_ptr< ButtonRenderer > tgui::ChildWindowRenderer::getMaximizeButton | ( | ) | const |
Returns the renderer of the maximize button.
std::shared_ptr< ButtonRenderer > tgui::ChildWindowRenderer::getMinimizeButton | ( | ) | const |
Returns the renderer of the minimize button.
|
overridevirtual |
Retrieve the value of a certain property.
property | The property that you would like to retrieve |
Reimplemented from tgui::WidgetRenderer.
Reimplemented in tgui::MessageBoxRenderer.
|
overridevirtual |
Get a map with all properties and their values.
Reimplemented from tgui::WidgetRenderer.
Reimplemented in tgui::MessageBoxRenderer.
void tgui::ChildWindowRenderer::setBackgroundColor | ( | const Color & | backgroundColor | ) |
Changes the background color of the child window.
backgroundColor | New background color |
void tgui::ChildWindowRenderer::setBorderColor | ( | const Color & | borderColor | ) |
Set the border color.
borderColor | The color of the borders |
|
inlinevirtual |
Changes the size of the borders.
borders | Size of the borders |
Reimplemented from tgui::WidgetBorders.
|
overridevirtual |
Changes the size of the borders.
borders | The size of the borders |
Reimplemented from tgui::WidgetBorders.
|
inline |
Changes the size of the borders.
leftBorder | Width of the left border |
topBorder | Height of the top border |
rightBorder | Width of the right border |
bottomBorder | Height of the bottom border |
|
inline |
Changes the size of the borders.
width | Width of the left and right borders |
height | Height of the top and bottom borders |
void tgui::ChildWindowRenderer::setDistanceToSide | ( | float | distanceToSide | ) |
Changes the distance between the title and the side of the title bar.
distanceToSide | distance between the title and the side of the title bar |
void tgui::ChildWindowRenderer::setPaddingBetweenButtons | ( | float | paddingBetweenButtons | ) |
Changes the distance between the title buttons if multiple exist.
paddingBetweenButtons | distance between the title and the side of the title bar |
|
overridevirtual |
Change a property of the renderer.
property | The property that you would like to change |
value | The new serialized value that you like to assign to the property |
Exception | when deserialization fails or when the widget does not have this property. |
Exception | when loading scrollbar fails with the theme connected to the list box |
Reimplemented from tgui::WidgetRenderer.
Reimplemented in tgui::MessageBoxRenderer.
|
overridevirtual |
Change a property of the renderer.
property | The property that you would like to change |
value | The new value that you like to assign to the property. The ObjectConverter is implicitly constructed from the possible value types. |
Exception | for unknown properties or when value was of a wrong type. |
Exception | when loading scrollbar fails with the theme connected to the list box |
Reimplemented from tgui::WidgetRenderer.
Reimplemented in tgui::MessageBoxRenderer.
void tgui::ChildWindowRenderer::setTitleBarColor | ( | const Color & | color | ) |
Changes the color of the title bar.
color | New title bar color |
Note that this color is ignored when you set an image as title bar.
void tgui::ChildWindowRenderer::setTitleBarHeight | ( | float | height | ) |
Change the height of the title bar.
height | New height of the title bar |
void tgui::ChildWindowRenderer::setTitleBarTexture | ( | const Texture & | texture | ) |
Change the image of the title bar.
texture | New title bar texture |
When this image is set, the title bar color property will be ignored. Pass an empty string to unset the image, in this case the title bar color property will be used again.
void tgui::ChildWindowRenderer::setTitleColor | ( | const Color & | color | ) |
Changes the color of the title that is displayed in the title bar of the child window.
color | New title color for the child window |