MGUI::POPUP_RADIO Class Reference

Popup showing set of mutually-exclusive (radio) icon buttons. More...

#include <mgui/popupradio.h>

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

List of all members.

Public Member Functions

 POPUP_RADIO (LAYOUT_ORIENTATION orientation=LAYOUT_ORIENTATION_Horizontal, int NumPerRowOrColumn=0, CTRL_TOGGLEBUTTON::STYLE ToggleStyle=CTRL_TOGGLEBUTTON::STYLE_Radio)
virtual ~POPUP_RADIO ()
void AddButton (ID id, const ICON &icon, const MISTRING &tooltip)
const ICONGetSelectedIcon () const
ID GetSelectedID () const
void SetSelectedID (ID id)

Detailed Description

Popup showing set of mutually-exclusive (radio) icon buttons.


Constructor & Destructor Documentation

MGUI::POPUP_RADIO::POPUP_RADIO ( LAYOUT_ORIENTATION  orientation = LAYOUT_ORIENTATION_Horizontal,
int  NumPerRowOrColumn = 0,
CTRL_TOGGLEBUTTON::STYLE  ToggleStyle = CTRL_TOGGLEBUTTON::STYLE_Radio 
) [explicit]

Constructor.

Parameters:
NumPerRowOrColumn Number of buttons per row or column if multiple rows/columns
virtual MGUI::POPUP_RADIO::~POPUP_RADIO (  )  [virtual]

Destructor.


Member Function Documentation

void MGUI::POPUP_RADIO::AddButton ( ID  id,
const ICON icon,
const MISTRING tooltip 
)

Add button with ICON.

Must be done before popup is first created or opened.

Parameters:
id ID to associate with button
icon Icon for button
tooltip ToolTip
const ICON& MGUI::POPUP_RADIO::GetSelectedIcon (  )  const [inline]

Get ICON for current selection.

ID MGUI::POPUP_RADIO::GetSelectedID (  )  const [inline]

Get ID of current selection.

void MGUI::POPUP_RADIO::SetSelectedID ( ID  id  )  [inline]

Set current selection.

If not button has specified ID then no button will appear as selected.

Parameters:
id ID used in AddButton

The documentation for this class was generated from the following file:

Generated on Sun Oct 7 21:36:14 2012 for TNTsdk 2012 by  doxygen 1.6.1