This page has been translated automatically.
Getting Started
Migrating to UNIGINE 2.0
C++ API Migration
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
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

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