MGUI::CTRL_LABEL Class Reference
Non-editable label control.
More...
#include <mgui/ctrl.h>
List of all members.
Public Types |
| enum | STYLE { STYLE_LeftNoWrap,
STYLE_Left,
STYLE_Center,
STYLE_Right
} |
Public Member Functions |
| | CTRL_LABEL () |
| | ~CTRL_LABEL () |
| void | Create (MGUI::LAYOUT_PANE_BASE &ParentPane, ICONID iconid, const MISTRING &tooltip, UINT16 iconsize=0) |
| void | Create (MGUI::LAYOUT_PANE_BASE &ParentPane, const MGUI::ICON &icon, const MISTRING &tooltip) |
| void | Create (MGUI::LAYOUT_PANE_BASE &ParentPane, const MISTRING &label, MGUI::LAYOUT_SIZEALIGN sizealign=MGUI::LAYOUT_SIZEALIGN_FixedSize, STYLE style=STYLE_LeftNoWrap) |
| void | SetIcon (ICONID iconid, UINT16 iconsize=0) |
| void | SetIcon (const MGUI::ICON &icon) |
| void | SetLabel (const MISTRING &string) |
Detailed Description
Non-editable label control.
Member Enumeration Documentation
- Enumerator:
| STYLE_LeftNoWrap |
Left-justify text without word wrapping.
|
| STYLE_Left |
Left-justify, may word-wrap if too long.
|
| STYLE_Center |
Center, may word-wrap if too long.
|
| STYLE_Right |
Right-justify, may word-wrap if too long.
|
Constructor & Destructor Documentation
| MGUI::CTRL_LABEL::CTRL_LABEL |
( |
|
) |
|
| MGUI::CTRL_LABEL::~CTRL_LABEL |
( |
|
) |
|
Member Function Documentation
Create control with ICONID with MISTRING or TEXTID tooltip.
- Parameters:
-
| ParentPane | Parent pane |
| iconid | ICON to use as the label |
| tooltip | tooltip string (allows TEXTID) |
Create control with icon.
- Parameters:
-
| ParentPane | Parent pane |
| icon | Icon |
| tooltip | Tooltip string (allows TEXTID) |
Create control with text.
- Parameters:
-
| ParentPane | Parent pane |
| label | Label string (allows TEXTID) |
| void MGUI::CTRL_LABEL::SetIcon |
( |
ICONID |
iconid, |
|
|
UINT16 |
iconsize = 0 | |
|
) |
| | |
Set new icon.
- Parameters:
-
| void MGUI::CTRL_LABEL::SetIcon |
( |
const MGUI::ICON & |
icon |
) |
|
Set new icon.
- Parameters:
-
| void MGUI::CTRL_LABEL::SetLabel |
( |
const MISTRING & |
string |
) |
|
Set new label from Unicode string.
The documentation for this class was generated from the following file: