Unigine::WidgetLabel Class
Interface for widget label handling. See also UnigineScript analog.
To use this class, include the UnigineWidgetLabel.h file.
Unigine::WidgetLabel Class
Members
static int type ()
WidgetLabel type.Return value
WidgetLabel type identifier.static Ptr< WidgetLabel > create (const WidgetPtr & widget)
WidgetLabel constructor.Arguments
- const WidgetPtr & widget - Widget smart pointer.
static Ptr< WidgetLabel > create (const Ptr< Gui > & gui, const char * str)
WidgetLabel constructor.Arguments
- const Ptr< Gui > & gui - Gui pointer.
- const char * str - Label text. This is an optional argument.
virtual void setTextAlign (int align) const =0
Sets alignment of the label.Arguments
- int align - One of the Unigine::Gui:: Enumeration with ALIGN_* prefixes.
virtual int getTextAlign () const =0
Returns alignment of the label.Return value
Alignment of the label: one of the Unigine::Gui:: Enumeration with ALIGN_* prefixes.virtual void setText (const char * str) const =0
Sets a text for the label.Arguments
- const char * str - Label text.
virtual const char * getText () const =0
Returns the text of the label.Return value
Label text.Last update: 2017-07-03
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)