Popup showing set of mutually-exclusive (radio) icon buttons. More...
#include <mgui/popupradio.h>

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 ICON & | GetSelectedIcon () const |
| ID | GetSelectedID () const |
| void | SetSelectedID (ID id) |
Popup showing set of mutually-exclusive (radio) icon buttons.
| MGUI::POPUP_RADIO::POPUP_RADIO | ( | LAYOUT_ORIENTATION | orientation = LAYOUT_ORIENTATION_Horizontal, |
|
| int | NumPerRowOrColumn = 0, |
|||
| CTRL_TOGGLEBUTTON::STYLE | ToggleStyle = CTRL_TOGGLEBUTTON::STYLE_Radio | |||
| ) | [explicit] |
Constructor.
| NumPerRowOrColumn | Number of buttons per row or column if multiple rows/columns |
| virtual MGUI::POPUP_RADIO::~POPUP_RADIO | ( | ) | [virtual] |
Destructor.
Add button with ICON.
Must be done before popup is first created or opened.
| id | ID to associate with button | |
| icon | Icon for button | |
| tooltip | ToolTip |
| 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.
| id | ID used in AddButton |
1.6.1