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

Standard drop-down menu item. More...

#include <DropDownMenuItem.h>

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

Public Member Functions

 DropDownMenuItem (const std::wstring &text, HMENU popupMenuHandle)
 
virtual void processMessage () final
 
virtual std::tuple< uint32_t, uint64_t > getCreationData () const final override
 
virtual json::JSONBuilder getStructure () const final override
 
virtual ~DropDownMenuItem ()=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
 

Protected Attributes

HMENU popupMenuHandle
 
- Protected Attributes inherited from gui_framework::interfaces::IMenuItem
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

Standard drop-down menu item.

Definition at line 8 of file DropDownMenuItem.h.

Constructor & Destructor Documentation

◆ DropDownMenuItem()

gui_framework::DropDownMenuItem::DropDownMenuItem ( const std::wstring & text,
HMENU popupMenuHandle )

Definition at line 7 of file DropDownMenuItem.cpp.

◆ ~DropDownMenuItem()

virtual gui_framework::DropDownMenuItem::~DropDownMenuItem ( )
virtualdefault

Member Function Documentation

◆ getCreationData()

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

Implements gui_framework::interfaces::IMenuItem.

Definition at line 23 of file DropDownMenuItem.cpp.

◆ getStructure()

json::JSONBuilder gui_framework::DropDownMenuItem::getStructure ( ) const
finaloverridevirtual

Reimplemented from gui_framework::interfaces::IMenuItem.

Definition at line 28 of file DropDownMenuItem.cpp.

◆ processMessage()

void gui_framework::DropDownMenuItem::processMessage ( )
finalvirtual

Implements gui_framework::interfaces::IMenuItem.

Definition at line 18 of file DropDownMenuItem.cpp.

Member Data Documentation

◆ popupMenuHandle

HMENU gui_framework::DropDownMenuItem::popupMenuHandle
protected

Definition at line 11 of file DropDownMenuItem.h.


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