|
| ItemToggle (const std::string &text, bool *toggled, int id=-1, bool center_text=false) |
|
| ItemToggle (const std::string &text, std::function< bool()> get_func, std::function< void(bool)> set_func, int id=-1, bool center_text=false) |
|
virtual void | draw (DrawingContext &, const Vector &pos, int menu_width, bool active) override |
| Draws the menu item. More...
|
|
virtual int | get_width () const override |
| Returns the minimum width of the menu item. More...
|
|
virtual void | process_action (const MenuAction &action) override |
| Processes the menu action. More...
|
|
◆ draw()
void ItemToggle::draw |
( |
DrawingContext & |
context, |
|
|
const Vector & |
pos, |
|
|
int |
menu_width, |
|
|
bool |
active |
|
) |
| |
|
overridevirtual |
Draws the menu item.
Reimplemented from MenuItem.
◆ get_width()
int ItemToggle::get_width |
( |
| ) |
const |
|
overridevirtual |
Returns the minimum width of the menu item.
Reimplemented from MenuItem.
◆ process_action()
void ItemToggle::process_action |
( |
const MenuAction & |
action | ) |
|
|
overridevirtual |
Processes the menu action.
Reimplemented from MenuItem.
The documentation for this class was generated from the following files: