MGUI::CTRL_LABEL Class Reference

Non-editable label control. More...

#include <mgui/ctrl.h>

Inheritance diagram for MGUI::CTRL_LABEL:
Inheritance graph
[legend]

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

Constructor.

MGUI::CTRL_LABEL::~CTRL_LABEL (  ) 

Member Function Documentation

void MGUI::CTRL_LABEL::Create ( MGUI::LAYOUT_PANE_BASE ParentPane,
ICONID  iconid,
const MISTRING tooltip,
UINT16  iconsize = 0 
)

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)
void MGUI::CTRL_LABEL::Create ( MGUI::LAYOUT_PANE_BASE ParentPane,
const MGUI::ICON icon,
const MISTRING tooltip 
)

Create control with icon.

Parameters:
ParentPane Parent pane
icon Icon
tooltip Tooltip string (allows TEXTID)
void MGUI::CTRL_LABEL::Create ( MGUI::LAYOUT_PANE_BASE ParentPane,
const MISTRING label,
MGUI::LAYOUT_SIZEALIGN  sizealign = MGUI::LAYOUT_SIZEALIGN_FixedSize,
STYLE  style = STYLE_LeftNoWrap 
)

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:
iconid ICONID to show
void MGUI::CTRL_LABEL::SetIcon ( const MGUI::ICON icon  ) 

Set new icon.

Parameters:
icon Icon to show
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:

Generated on Sun Oct 7 21:35:33 2012 for TNTsdk 2012 by  doxygen 1.6.1