GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
|
Standard menu item. More...
#include <MenuItem.h>
Public Member Functions | |
MenuItem (const std::wstring &text, const std::function< void()> &onClick) | |
MenuItem (const std::wstring &text, const std::string &functionName, const std::string &moduleName) | |
void | processMessage () override |
json::JSONBuilder | getStructure () const override |
~MenuItem ()=default | |
Public Member Functions inherited from gui_framework::BaseMenuItem | |
BaseMenuItem (const std::wstring &text) | |
virtual std::tuple< uint32_t, uint64_t > | getCreationData () const final override |
virtual | ~BaseMenuItem ()=default |
Public Member Functions inherited from gui_framework::interfaces::IMenuItem | |
IMenuItem (const std::wstring &text, const std::string &type) | |
virtual void | createMenuItem (HMENU parent) final |
virtual void | setParent (HMENU parent) final |
virtual void | setIndex (uint32_t index) final |
virtual const std::wstring & | getText () const final |
virtual const std::string & | getType () const final |
virtual | ~IMenuItem () |
Public Member Functions inherited from gui_framework::interfaces::ISerializable | |
ISerializable ()=default | |
virtual | ~ISerializable ()=default |
Additional Inherited Members | |
Static Public Member Functions inherited from gui_framework::interfaces::ISerializable | |
static uint32_t | getCodepage () |
Protected Attributes inherited from gui_framework::interfaces::IMenuItem | |
std::wstring | text |
std::string | type |
HMENU | parent |
uint32_t | index |
Standard menu item.
Definition at line 8 of file MenuItem.h.
gui_framework::MenuItem::MenuItem | ( | const std::wstring & | text, |
const std::function< void()> & | onClick ) |
gui_framework::MenuItem::MenuItem | ( | const std::wstring & | text, |
const std::string & | functionName, | ||
const std::string & | moduleName ) |
text | |
functionName | |
moduleName |
CantFindFunctionFromModuleException |
|
default |
|
overridevirtual |
Reimplemented from gui_framework::interfaces::IMenuItem.
Definition at line 41 of file MenuItem.cpp.
|
overridevirtual |
Implements gui_framework::BaseMenuItem.
Definition at line 36 of file MenuItem.cpp.