Unigine::WidgetDialogMessage Class
Interface for widget dialog color handling. See also UnigineScript analog.
To use this class, include the UnigineWidgetDialogMessage.h file.
Unigine::WidgetDialogMessage Class
Members
static Ptr< WidgetDialogMessage > create (const WidgetDialogPtr & dialog)
WidgetDialogMessage constructor.Arguments
- const WidgetDialogPtr & dialog - Dialog smart pointer.
static Ptr< WidgetDialogMessage > create (const Ptr< Gui > & gui, const char * str)
WidgetDialogMessage constructor.Arguments
- const Ptr< Gui > & gui - Gui pointer.
- const char * str - Dialog window title. This is an optional argument.
virtual void setMessageHidden (int hidden) const =0
Hides or shows the text message in the widget.Arguments
- int hidden - 1 to hide the text message, 0 to show it.
virtual int isMessageHidden () const =0
Returns a value indicating if a text message in the widget is hidden or shown.Return value
Returns 1 if the text message is hidden; otherwise, 0.virtual void setMessageFont (const char * name) const =0
Sets a font that will be used to display the text message in the widget.Arguments
- const char * name - Font name.
virtual void setMessageFontSize (int size) const =0
Sets a size of the font used to display the text message in the widget.Arguments
- int size - Font size.
virtual void setMessageFontColor (const vec4 & color) const =0
Sets a color of the font used to display the text message in the widget.Arguments
- const vec4 & color - Font color.
virtual void setMessageFontRich (int rich) const =0
Sets a value indicating if rich text formatting should be used for the text message in the widget.Arguments
- int rich - Positive number to use rich text formatting, 0 to use plain text formatting.
virtual void setMessageText (const char * Text) const =0
Sets a text message of the dialog.Arguments
- const char * Text - message.
virtual const char * getMessageText () const =0
Returns the text message of the dialog. The default is equal to the dialog title.Return value
Text message.Last update: 2017-07-03
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)