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

#include <menu_item.hpp>

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

Public Member Functions

 define_declared_event (Selected, selected) define_declared_event(Deselected
 
 menu_item (i_action &aAction)
 
 menu_item (i_ref_ptr< i_action > const &aAction)
 
 menu_item (i_menu &aSubMenu)
 
 menu_item (std::shared_ptr< i_menu > aSubMenu)
 
menu_item_type type () const override
 
uuid const & group () const override
 
const i_actionaction () const override
 
i_actionaction () override
 
const i_menusub_menu () const override
 
i_menusub_menu () override
 
const i_menu_item_widgetas_widget () const override
 
i_menu_item_widgetas_widget () override
 
void set_widget (i_menu_item_widget &aWidget) override
 
void unset_widget () override
 
bool available () const override
 
void select (bool aOpenAnySubMenu=true) override
 
bool open_any_sub_menu () const override
 
- Public Member Functions inherited from neogfx::i_menu_item
virtual ~i_menu_item ()=default
 
bool is_separator () const
 

Detailed Description

Definition at line 29 of file menu_item.hpp.

Constructor & Destructor Documentation

◆ menu_item() [1/4]

neogfx::menu_item::menu_item ( i_action aAction)

◆ menu_item() [2/4]

neogfx::menu_item::menu_item ( i_ref_ptr< i_action > const &  aAction)

◆ menu_item() [3/4]

neogfx::menu_item::menu_item ( i_menu aSubMenu)

◆ menu_item() [4/4]

neogfx::menu_item::menu_item ( std::shared_ptr< i_menu aSubMenu)

Member Function Documentation

◆ action() [1/2]

const i_action & neogfx::menu_item::action ( ) const
overridevirtual

Implements neogfx::i_menu_item.

◆ action() [2/2]

i_action & neogfx::menu_item::action ( )
overridevirtual

Implements neogfx::i_menu_item.

◆ as_widget() [1/2]

const i_menu_item_widget & neogfx::menu_item::as_widget ( ) const
overridevirtual

Implements neogfx::i_menu_item.

◆ as_widget() [2/2]

i_menu_item_widget & neogfx::menu_item::as_widget ( )
overridevirtual

Implements neogfx::i_menu_item.

◆ available()

bool neogfx::menu_item::available ( ) const
overridevirtual

Implements neogfx::i_menu_item.

◆ define_declared_event()

neogfx::menu_item::define_declared_event ( Selected  ,
selected   
)

◆ group()

uuid const & neogfx::menu_item::group ( ) const
overridevirtual

Implements neogfx::i_menu_item.

◆ open_any_sub_menu()

bool neogfx::menu_item::open_any_sub_menu ( ) const
overridevirtual

Implements neogfx::i_menu_item.

◆ select()

void neogfx::menu_item::select ( bool  aOpenAnySubMenu = true)
overridevirtual

Implements neogfx::i_menu_item.

◆ set_widget()

void neogfx::menu_item::set_widget ( i_menu_item_widget aWidget)
overridevirtual

Implements neogfx::i_menu_item.

◆ sub_menu() [1/2]

const i_menu & neogfx::menu_item::sub_menu ( ) const
overridevirtual

Implements neogfx::i_menu_item.

◆ sub_menu() [2/2]

i_menu & neogfx::menu_item::sub_menu ( )
overridevirtual

Implements neogfx::i_menu_item.

◆ type()

menu_item_type neogfx::menu_item::type ( ) const
overridevirtual

Implements neogfx::i_menu_item.

◆ unset_widget()

void neogfx::menu_item::unset_widget ( )
overridevirtual

Implements neogfx::i_menu_item.


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