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

#include <i_shared_menu_bar.hpp>

Inheritance diagram for neogfx::i_shared_menu_bar:
neogfx::i_menu neogfx::i_action_container

Public Member Functions

virtual void use (const i_menu &aSourceMenu)=0
 
- Public Member Functions inherited from neogfx::i_menu
 declare_event (menu_changed) declare_event(item_added
 
item_index declare_event (item_removed, item_index) declare_event(item_changed
 
item_index item_index declare_event (opened) declare_event(closed) declare_event(item_selected
 
item_index item_index i_menu_itemdeclare_event (selection_cleared) declare_event(open_sub_menu
 
virtual ~i_menu ()=default
 
virtual const i_widgetas_widget () const =0
 
virtual i_widgetas_widget ()=0
 
virtual bool has_parent () const =0
 
virtual i_menuparent ()=0
 
virtual void set_parent (i_menu &aParent)=0
 
virtual menu_type type () const =0
 
virtual uuid const & group () const =0
 
virtual void set_group (uuid const &aGroup)=0
 
virtual i_string const & title () const =0
 
virtual void set_title (i_string const &aTitle)=0
 
virtual const i_textureimage () const =0
 
virtual void set_image (i_string const &aUri)=0
 
virtual void set_image (i_image const &aImage)=0
 
virtual void set_image (i_texture const &aTexture)=0
 
virtual uint32_t count () const =0
 
virtual uint32_t ideal_insert_index (uuid const &aGroup) const =0
 
virtual const i_menu_itemitem_at (item_index aItemIndex) const =0
 
virtual i_menu_itemitem_at (item_index aItemIndex)=0
 
virtual void add_sub_menu (i_menu &aSubMenu)=0
 
virtual i_menuadd_sub_menu (i_string const &aSubMenuTitle, uuid const &aGroup={})=0
 
virtual void add_separator (uuid const &aGroup={})=0
 
virtual void insert_sub_menu_at (item_index aItemIndex, i_menu &aSubMenu)=0
 
virtual i_menuinsert_sub_menu_at (item_index aItemIndex, i_string const &aSubMenuTitle, uuid const &aGroup={})=0
 
virtual void insert_action_at (item_index aItemIndex, i_action &aAction)=0
 
virtual void insert_action_at (item_index aItemIndex, i_ref_ptr< i_action > const &aAction)=0
 
virtual void insert_separator_at (item_index aItemIndex, uuid const &aGroup={})=0
 
virtual void remove_at (item_index aItemIndex)=0
 
virtual item_index find_sub_menu (uuid const &aGroup) const =0
 
virtual item_index find (i_menu_item const &aItem) const =0
 
virtual item_index find (i_menu const &aSubMenu) const =0
 
virtual bool has_selected_item () const =0
 
virtual item_index selected_item () const =0
 
virtual void select_item_at (item_index aItemIndex, bool aOpenAnySubMenu=true)=0
 
virtual void clear_selection ()=0
 
virtual bool has_available_items () const =0
 
virtual bool item_available_at (item_index aItemIndex) const =0
 
virtual item_index first_available_item () const =0
 
virtual item_index previous_available_item (item_index aCurrentIndex) const =0
 
virtual item_index next_available_item (item_index aCurrentIndex) const =0
 
virtual bool is_open () const =0
 
virtual void open ()=0
 
virtual void close ()=0
 
virtual bool is_modal () const =0
 
virtual void set_modal (bool aModal)=0
 
uint32_t ideal_insert_index (i_action const &aAction) const
 
uint32_t ideal_insert_index (i_menu const &aSubMenu) const
 
- Public Member Functions inherited from neogfx::i_action_container
virtual i_actionadd_action (i_action &aAction)=0
 
virtual i_actionadd_action (i_ref_ptr< i_action > const &aAction)=0
 

Additional Inherited Members

- Public Types inherited from neogfx::i_menu
typedef uint32_t item_index
 
typedef uint32_t item_index
 

Detailed Description

Definition at line 27 of file i_shared_menu_bar.hpp.

Member Function Documentation

◆ use()

virtual void neogfx::i_shared_menu_bar::use ( const i_menu aSourceMenu)
pure virtual

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