neoGFX
Cross-platform C++ app/game engine
|
#include <i_shared_menu_bar.hpp>
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_item & | declare_event (selection_cleared) declare_event(open_sub_menu |
virtual | ~i_menu ()=default |
virtual const i_widget & | as_widget () const =0 |
virtual i_widget & | as_widget ()=0 |
virtual bool | has_parent () const =0 |
virtual i_menu & | parent ()=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_texture & | image () 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_item & | item_at (item_index aItemIndex) const =0 |
virtual i_menu_item & | item_at (item_index aItemIndex)=0 |
virtual void | add_sub_menu (i_menu &aSubMenu)=0 |
virtual i_menu & | add_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_menu & | insert_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_action & | add_action (i_action &aAction)=0 |
virtual i_action & | add_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 |
Definition at line 27 of file i_shared_menu_bar.hpp.
|
pure virtual |