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

#include <Menu.hpp>

Inheritance diagram for psychic_ui::RadioMenuItem:
psychic_ui::MenuItem

Public Member Functions

 RadioMenuItem (std::shared_ptr< MenuRadioGroup > itemGroup, const std::string &itemLabel, std::string itemValue, const std::string &itemShortcut="", const std::string &itemIcon="")
bool checked () const
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::shared_ptr< MenuRadioGroup > group {}
std::string value {}
bool closes {false}
Public Attributes inherited from psychic_ui::MenuItem
std::string label {}
std::string shortcut {}
std::string icon {}
bool enabled {true}
bool danger {false}

Detailed Description

One of a group's values, checked while it is the group's: choosing it makes it the group's value (the menu stays open, unless closes)


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