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

#include <Menu.hpp>

Inheritance diagram for psychic_ui::SimpleMenuItem:
psychic_ui::MenuItem

Public Member Functions

 SimpleMenuItem (const std::string &itemLabel, std::function< void()> itemCallback, const std::string &itemShortcut="", const std::string &itemIcon="")
Public Member Functions inherited from psychic_ui::MenuItem
 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::function< void()> callback {nullptr}
Public Attributes inherited from psychic_ui::MenuItem
std::string label {}
std::string shortcut {}
std::string icon {}
bool enabled {true}
bool danger {false}

Detailed Description

An item that calls callback, then closes its menu


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