|
wex v25.10.0
|
Offers user data to be used by item. More...
#include <wex/data/menu.h>
Public Types | |
| typedef std::function< void(wxCommandEvent &)> | action_t |
| Callback for menu action. | |
| typedef std::function< void(wxUpdateUIEvent &)> | ui_t |
| Callback for menu update action. | |
Public Member Functions | |
| menu & | action (const action_t &rhs) |
| Sets action. | |
| auto & | art () const |
| Returns art. | |
| menu & | art (const wxArtID &rhs) |
| Sets art. | |
| void | bind (int id) const |
| Binds action or ui to frame. | |
| auto & | help_text () const |
| Returns help text. | |
| menu & | help_text (const std::string &rhs) |
| Sets help text. | |
| menu & | ui (const ui_t &rhs) |
| Sets ui. | |
Offers user data to be used by item.