|
|
| ItemToggle (const std::string &text, bool *toggled, int id=-1) |
| |
|
| ItemToggle (const std::string &text, std::function< bool()> get_func, std::function< void(bool)> set_func, int id=-1) |
| |
| 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()
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: