TGUI  0.7.4
tgui::MessageBoxRenderer Class Reference
Inheritance diagram for tgui::MessageBoxRenderer:
tgui::ChildWindowRenderer tgui::WidgetRenderer tgui::WidgetBorders

Public Member Functions

 MessageBoxRenderer (MessageBox *messageBox)
 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, ObjectConvertergetPropertyValuePairs () const override
 Get a map with all properties and their values. More...
 
void setTextColor (const Color &color)
 Changes the color of the text. More...
 
- Public Member Functions inherited from tgui::ChildWindowRenderer
 ChildWindowRenderer (ChildWindow *childWindow)
 Constructor. 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< ButtonRenderergetCloseButton () const
 Returns the renderer of the close button. More...
 
std::shared_ptr< ButtonRenderergetMinimizeButton () const
 Returns the renderer of the minimize button. More...
 
std::shared_ptr< ButtonRenderergetMaximizeButton () const
 Returns the renderer of the maximize button. 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...
 

Constructor & Destructor Documentation

◆ MessageBoxRenderer()

tgui::MessageBoxRenderer::MessageBoxRenderer ( MessageBox messageBox)
inline

Constructor.

Parameters
messageBoxThe message box that is connected to the renderer

Member Function Documentation

◆ getProperty()

virtual ObjectConverter tgui::MessageBoxRenderer::getProperty ( std::string  property) const
overridevirtual

Retrieve the value of a certain property.

Parameters
propertyThe property that you would like to retrieve
Returns
The value inside a ObjectConverter object which you can extract with the correct get function or an ObjectConverter object with type ObjectConverter::Type::None when the property did not exist.

Reimplemented from tgui::ChildWindowRenderer.

◆ getPropertyValuePairs()

virtual std::map<std::string, ObjectConverter> tgui::MessageBoxRenderer::getPropertyValuePairs ( ) const
overridevirtual

Get a map with all properties and their values.

Returns
Property-value pairs of the renderer

Reimplemented from tgui::ChildWindowRenderer.

◆ setProperty() [1/2]

virtual void tgui::MessageBoxRenderer::setProperty ( std::string  property,
const std::string &  value 
)
overridevirtual

Change a property of the renderer.

Parameters
propertyThe property that you would like to change
valueThe new serialized value that you like to assign to the property
Exceptions
Exceptionwhen deserialization fails or when the widget does not have this property.
Exceptionwhen loading scrollbar fails with the theme connected to the list box

Reimplemented from tgui::ChildWindowRenderer.

◆ setProperty() [2/2]

virtual void tgui::MessageBoxRenderer::setProperty ( std::string  property,
ObjectConverter &&  value 
)
overridevirtual

Change a property of the renderer.

Parameters
propertyThe property that you would like to change
valueThe new value that you like to assign to the property. The ObjectConverter is implicitly constructed from the possible value types.
Exceptions
Exceptionfor unknown properties or when value was of a wrong type.
Exceptionwhen loading scrollbar fails with the theme connected to the list box

Reimplemented from tgui::ChildWindowRenderer.

◆ setTextColor()

void tgui::MessageBoxRenderer::setTextColor ( const Color color)

Changes the color of the text.

Parameters
colorNew text color

The documentation for this class was generated from the following file: