Class UI::ImguiMSwitch
ClassList > UI > ImguiMSwitch
#include <ImguiMSwitch.h>
Inherits the following classes: ImguiMenuItem
Public Attributes inherited from ImguiMenuItem
See ImguiMenuItem
| Type | Name |
|---|---|
| bool | mitem_enable = true |
| std::function< bool(bool)> | mitem_func |
| std::string | mitem_name = "" |
| bool | mitem_onclick = { false } |
| bool | mitem_onclick_b = { false } |
| bool | mitem_press = { false } |
| std::string | mitem_shortcut = "" |
| MenuItemType | mitem_type = BUTTON\_MITEM |
Public Functions
| Type | Name |
|---|---|
| virtual void | BindSwitch (bool * _switch) override |
| ImguiMSwitch () |
|
| ImguiMSwitch (std::string _name) |
|
| virtual void | RenderMenuItem (const Context & ctx) override |
| ~ImguiMSwitch () |
Public Functions inherited from ImguiMenuItem
See ImguiMenuItem
| Type | Name |
|---|---|
| virtual void | BindOption (char * _option) |
| void | BindOption (T * _option, std::function< bool(bool)> _callback=NULL) |
| virtual void | BindSwitch (bool * _switch) |
| void | EnableMenuItem (bool en) |
| ImguiMenuItem () |
|
| ImguiMenuItem (const std::string & name) |
|
| ImguiMenuItem (const std::string & name, const std::string & shortcut) |
|
| ImguiMenuItem (const std::string & name, MenuItemType _type) |
|
| ImguiMenuItem (const std::string & name, const std::string & shortcut, MenuItemType _type) |
|
| virtual void | RenderMenuItem (const Context & ctx) |
| ~ImguiMenuItem () |
Public Functions Documentation
function BindSwitch
virtual void UI::ImguiMSwitch::BindSwitch (
bool * _switch
) override
Implements ImguiMenuItem::BindSwitch
function ImguiMSwitch [1/2]
UI::ImguiMSwitch::ImguiMSwitch ()
function ImguiMSwitch [2/2]
UI::ImguiMSwitch::ImguiMSwitch (
std::string _name
)
function RenderMenuItem
virtual void UI::ImguiMSwitch::RenderMenuItem (
const Context & ctx
) override
Implements ImguiMenuItem::RenderMenuItem
function ~ImguiMSwitch
inline UI::ImguiMSwitch::~ImguiMSwitch ()
The documentation for this class was generated from the following file src/UI/menu/ImguiMSwitch.h