This page has been translated automatically.
Programming
Fundamentials
Setting Up Development Environment
UnigineScript
High-Level Systems
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Bounds-Related Classes
Containers
Controls-Related Classes
Core Library
Engine-Related Classes
Node-Related Classes
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
Rendering-Related Classes
Utility Classes
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

WidgetLabel Class

Interface for widget label handling. See also UnigineScript analog.

To use this class, include the UnigineWidgetLabel.h file.

WidgetLabel Class

Members


WidgetLabel (const Ptr<Gui> & gui, const char * str = 0)

Constructor. Creates a new text label.

Arguments

  • const Ptr<Gui> & gui - GUI, to which the new label will belong.
  • const char * str - Text of the label. This is an optional parameter.

int type ()

WidgetLabel type.

Return value

WidgetLabel type identifier.

Ptr<WidgetLabel> create (const Ptr<Widget> & widget)

WidgetLabel constructor.

Arguments

  • const Ptr<Widget> & widget - Widget smart pointer.

Return value

void setText (const char * text)

Sets a text for the label.

Arguments

  • const char * text - Label text.

int getTextAlign ()

Returns alignment of the label.

Return value

Alignment of the label: one of the Gui:: Enumeration with ALIGN_* prefixes.

const char * getText ()

Returns the text of the label.

Return value

Label text.

void setTextAlign (int align)

Sets alignment of the label.

Arguments

  • int align - One of the Gui:: Enumeration with ALIGN_* prefixes.
Last update: 03.07.2017
Build: ()