neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::i_menu_item Class Referenceabstract

#include <i_menu_item.hpp>

Inheritance diagram for neogfx::i_menu_item:
neogfx::menu_item

Classes

struct  no_widget
 

Public Member Functions

virtual ~i_menu_item ()=default
 
virtual menu_item_type type () const =0
 
virtual uuid const & group () const =0
 
virtual const i_actionaction () const =0
 
virtual i_actionaction ()=0
 
virtual const i_menusub_menu () const =0
 
virtual i_menusub_menu ()=0
 
virtual const i_menu_item_widgetas_widget () const =0
 
virtual i_menu_item_widgetas_widget ()=0
 
virtual void set_widget (i_menu_item_widget &aWidget)=0
 
virtual void unset_widget ()=0
 
virtual bool available () const =0
 
virtual void select (bool aOpenAnySubMenu=true)=0
 
virtual bool open_any_sub_menu () const =0
 
bool is_separator () const
 

Detailed Description

Definition at line 37 of file i_menu_item.hpp.

Constructor & Destructor Documentation

◆ ~i_menu_item()

virtual neogfx::i_menu_item::~i_menu_item ( )
virtualdefault

Member Function Documentation

◆ action() [1/2]

virtual const i_action & neogfx::i_menu_item::action ( ) const
pure virtual

Implemented in neogfx::menu_item.

◆ action() [2/2]

virtual i_action & neogfx::i_menu_item::action ( )
pure virtual

Implemented in neogfx::menu_item.

◆ as_widget() [1/2]

virtual const i_menu_item_widget & neogfx::i_menu_item::as_widget ( ) const
pure virtual

Implemented in neogfx::menu_item.

◆ as_widget() [2/2]

virtual i_menu_item_widget & neogfx::i_menu_item::as_widget ( )
pure virtual

Implemented in neogfx::menu_item.

◆ available()

virtual bool neogfx::i_menu_item::available ( ) const
pure virtual

Implemented in neogfx::menu_item.

◆ group()

virtual uuid const & neogfx::i_menu_item::group ( ) const
pure virtual

Implemented in neogfx::menu_item.

◆ is_separator()

bool neogfx::i_menu_item::is_separator ( ) const
inline

Definition at line 64 of file i_menu_item.hpp.

◆ open_any_sub_menu()

virtual bool neogfx::i_menu_item::open_any_sub_menu ( ) const
pure virtual

Implemented in neogfx::menu_item.

◆ select()

virtual void neogfx::i_menu_item::select ( bool  aOpenAnySubMenu = true)
pure virtual

Implemented in neogfx::menu_item.

◆ set_widget()

virtual void neogfx::i_menu_item::set_widget ( i_menu_item_widget aWidget)
pure virtual

Implemented in neogfx::menu_item.

◆ sub_menu() [1/2]

virtual const i_menu & neogfx::i_menu_item::sub_menu ( ) const
pure virtual

Implemented in neogfx::menu_item.

◆ sub_menu() [2/2]

virtual i_menu & neogfx::i_menu_item::sub_menu ( )
pure virtual

Implemented in neogfx::menu_item.

◆ type()

virtual menu_item_type neogfx::i_menu_item::type ( ) const
pure virtual

Implemented in neogfx::menu_item.

◆ unset_widget()

virtual void neogfx::i_menu_item::unset_widget ( )
pure virtual

Implemented in neogfx::menu_item.


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