This page has been translated automatically.
UnigineScript
The Language
Core Library
Engine Library
Node-Related Classes
GUI-Related Classes
Plugins Library
High-Level Systems
Samples
C++ API
API Reference
Integration Samples
Usage Examples
C++ Plugins
Content Creation
Materials
Unigine Material Library
Tutorials
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

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 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

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
Build: ()