psychic-ui 0.0.0
Loading...
Searching...
No Matches
psychic_ui::MenuItem Class Reference

#include <Menu.hpp>

Inheritance diagram for psychic_ui::MenuItem:
psychic_ui::CheckMenuItem psychic_ui::GroupMenuItem psychic_ui::RadioMenuItem psychic_ui::SeparatorMenuItem psychic_ui::SimpleMenuItem psychic_ui::SubMenuItem

Public Member Functions

 MenuItem (std::string itemLabel, std::string itemShortcut="", std::string itemIcon="")
 MenuItem (const MenuItem &)=delete
MenuItem & operator= (const MenuItem &)=delete
 MenuItem (MenuItem &&)=delete
MenuItem & operator= (MenuItem &&)=delete

Public Attributes

std::string label {}
std::string shortcut {}
std::string icon {}
bool enabled {true}
bool danger {false}

Detailed Description

A row of a menu, as data: what menus (and menu bars) are made of. Menus are made again from their items every time they open, so an item keeps its state (a check mark) between openings.


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