wex v24.10.0
|
This class offers methods to handle menu commands. More...
#include <wex/ui/menus.h>
Static Public Member Functions | |
template<typename T > | |
static size_t | add_commands (const pugi::xml_node &node, T &commands) |
Adds commands from xml to vector of menu commands. | |
template<typename T > | |
static size_t | build_menu (const T &commands, int base_id, menu *menu) |
Builds menu from vector of menu commands. | |
template<typename T > | |
static bool | load (const std::string &name, T &entries) |
Loads entries from xml document. | |
static const wex::path | path () |
Returns the xml filename. | |
This class offers methods to handle menu commands.
|
static |
Adds commands from xml to vector of menu commands.
Returns number of commands added.
node | node with data |
commands | the commands to be filled |
|
static |
Builds menu from vector of menu commands.
Returns number of items added to menu.
commands | the commands |
base_id | base id for command |
menu | menu to build |
|
static |
Loads entries from xml document.
Returns false if document could not be loaded, or no entries were added.