GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
gui_framework::BaseMenuItem Class Referenceabstract

Base class for all menu items. More...

#include <BaseMenuItem.h>

Inheritance diagram for gui_framework::BaseMenuItem:
gui_framework::interfaces::IMenuItem gui_framework::interfaces::ISerializable gui_framework::MenuItem

Public Member Functions

 BaseMenuItem (const std::wstring &text)
 
virtual void processMessage ()=0
 
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 json::JSONBuilder getStructure () const override
 
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
 

Detailed Description

Base class for all menu items.

Definition at line 8 of file BaseMenuItem.h.

Constructor & Destructor Documentation

◆ BaseMenuItem()

gui_framework::BaseMenuItem::BaseMenuItem ( const std::wstring & text)

Definition at line 7 of file BaseMenuItem.cpp.

◆ ~BaseMenuItem()

virtual gui_framework::BaseMenuItem::~BaseMenuItem ( )
virtualdefault

Member Function Documentation

◆ getCreationData()

tuple< uint32_t, uint64_t > gui_framework::BaseMenuItem::getCreationData ( ) const
finaloverridevirtual
Returns
styles - new item value

Implements gui_framework::interfaces::IMenuItem.

Definition at line 17 of file BaseMenuItem.cpp.

◆ processMessage()

virtual void gui_framework::BaseMenuItem::processMessage ( )
pure virtual

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