wex v24.10.0
Public Types | Public Member Functions | List of all members
wex::data::menu Class Reference

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

menuaction (const action_t &rhs)
 Sets action.
 
auto & art () const
 Returns art.
 
menuart (const wxArtID &rhs)
 Sets art.
 
void bind (int id) const
 Binds action or ui to frame.
 
auto & help_text () const
 Returns help text.
 
menuhelp_text (const std::string &rhs)
 Sets help text.
 
menuui (const ui_t &rhs)
 Sets ui.
 

Detailed Description

Offers user data to be used by item.