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

Interface for all menu items. More...

#include <IMenuItem.h>

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

Public Member Functions

 IMenuItem (const std::wstring &text, const std::string &type)
 
virtual void processMessage ()=0
 
virtual std::tuple< uint32_t, uint64_t > getCreationData () const =0
 
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
 

Protected Attributes

std::wstring text
 
std::string type
 
HMENU parent
 
uint32_t index
 

Additional Inherited Members

- Static Public Member Functions inherited from gui_framework::interfaces::ISerializable
static uint32_t getCodepage ()
 

Detailed Description

Interface for all menu items.

Definition at line 10 of file IMenuItem.h.

Constructor & Destructor Documentation

◆ IMenuItem()

gui_framework::interfaces::IMenuItem::IMenuItem ( const std::wstring & text,
const std::string & type )

Definition at line 11 of file IMenuItem.cpp.

◆ ~IMenuItem()

gui_framework::interfaces::IMenuItem::~IMenuItem ( )
virtual

Definition at line 61 of file IMenuItem.cpp.

Member Function Documentation

◆ createMenuItem()

void gui_framework::interfaces::IMenuItem::createMenuItem ( HMENU parent)
finalvirtual

Definition at line 20 of file IMenuItem.cpp.

◆ getCreationData()

virtual std::tuple< uint32_t, uint64_t > gui_framework::interfaces::IMenuItem::getCreationData ( ) const
pure virtual
Returns
styles - new item value

Implemented in gui_framework::BaseMenuItem, and gui_framework::DropDownMenuItem.

◆ getStructure()

json::JSONBuilder gui_framework::interfaces::IMenuItem::getStructure ( ) const
overridevirtual

◆ getText()

const wstring & gui_framework::interfaces::IMenuItem::getText ( ) const
finalvirtual

Definition at line 39 of file IMenuItem.cpp.

◆ getType()

const string & gui_framework::interfaces::IMenuItem::getType ( ) const
finalvirtual

Definition at line 44 of file IMenuItem.cpp.

◆ processMessage()

virtual void gui_framework::interfaces::IMenuItem::processMessage ( )
pure virtual

◆ setIndex()

void gui_framework::interfaces::IMenuItem::setIndex ( uint32_t index)
finalvirtual

Definition at line 34 of file IMenuItem.cpp.

◆ setParent()

void gui_framework::interfaces::IMenuItem::setParent ( HMENU parent)
finalvirtual

Definition at line 29 of file IMenuItem.cpp.

Member Data Documentation

◆ index

uint32_t gui_framework::interfaces::IMenuItem::index
protected

Definition at line 16 of file IMenuItem.h.

◆ parent

HMENU gui_framework::interfaces::IMenuItem::parent
protected

Definition at line 15 of file IMenuItem.h.

◆ text

std::wstring gui_framework::interfaces::IMenuItem::text
protected

Definition at line 13 of file IMenuItem.h.

◆ type

std::string gui_framework::interfaces::IMenuItem::type
protected

Definition at line 14 of file IMenuItem.h.


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