UnigineScript
The Language
Core Library
Engine Library
Node-Related Classes
GUI-Related Classes
Plugins Library
High-Level Systems
Samples
Usage Examples
C++ API
API Reference
Integration Samples
Usage Examples
C++ Plugins
Migration
Migrating to UNIGINE 2.0
C++ API Migration
Migrating from UNIGINE 2.0 to UNIGINE 2.1

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

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