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

#include <i_action.hpp>

Inheritance diagram for neogfx::i_action:
neolib::i_reference_counted

Public Types

typedef i_action abstract_type
 

Public Member Functions

virtual bool is_enabled () const =0
 
virtual bool is_disabled () const =0
 
virtual bool is_checkable () const =0
 
virtual bool is_checked () const =0
 
virtual bool is_unchecked () const =0
 
virtual uuid const & group () const =0
 
virtual bool is_separator () const =0
 
virtual i_string const & text () const =0
 
virtual i_string const & menu_text () const =0
 
virtual i_string const & button_text () const =0
 
virtual i_string const & tool_tip_text () const =0
 
virtual i_string const & help_text () const =0
 
virtual i_texture const & image () const =0
 
virtual i_texture const & checked_image () const =0
 
virtual optional_key_sequence const & shortcut () const =0
 
virtual i_actionset_enabled (bool aEnabled)=0
 
virtual i_actionset_checkable (bool aCheckable=true)=0
 
virtual i_actionset_checked (bool aChecked)=0
 
virtual i_actionset_group (uuid const &aGroup)=0
 
virtual i_actionset_separator (bool aIsSeparator)=0
 
virtual i_actionset_text (i_optional< i_string > const &aText)=0
 
virtual i_actionset_menu_text (i_optional< i_string > const &aMenuText)=0
 
virtual i_actionset_button_text (i_optional< i_string > const &aButtonText)=0
 
virtual i_actionset_tool_tip_text (i_optional< i_string > const &aToolTipText)=0
 
virtual i_actionset_help_text (i_optional< i_string > const &aHelpText)=0
 
virtual i_actionset_image (i_texture const &aTexture)=0
 
virtual i_actionset_checked_image (i_texture const &aTexture)=0
 
virtual i_actionset_shortcut (optional_key_sequence const &aShortcut)=0
 
virtual i_actionset_shortcut (i_string const &aShortcut)=0
 
i_actionenable (bool aEnabled=true)
 
i_actiondisable (bool aDisabled=true)
 
i_actioncheck (bool aChecked=true)
 
i_actionuncheck (bool aUnchecked=true)
 
i_actiontoggle ()
 
i_actionset_text (optional_text const &aText=optional_text{})
 
i_actionset_menu_text (optional_text const &aMenuText=optional_text{})
 
i_actionset_button_text (optional_text const &aButtonText=optional_text{})
 
i_actionset_tool_tip_text (optional_text const &aToolTipText=optional_text{})
 
i_actionset_help_text (optional_text const &aHelpText=optional_text{})
 
i_actionset_image (std::string const &aUri, dimension aDpiScaleFactor=1.0, texture_sampling aSampling=texture_sampling::Scaled)
 
i_actionset_image (i_image const &aImage)
 
i_actionset_checked_image (std::string const &aUri, dimension aDpiScaleFactor=1.0, texture_sampling aSampling=texture_sampling::Scaled)
 
i_actionset_checked_image (i_image const &aImage)
 
i_actionset_shortcut (std::string const &aShortcut)
 
- Public Member Functions inherited from neolib::i_reference_counted
virtual ~i_reference_counted ()=default
 
virtual void add_ref () const noexcept=0
 
virtual void release () const =0
 
virtual int32_t use_count () const noexcept=0
 
virtual const i_reference_countedrelease_and_take_ownership () const =0
 
virtual i_reference_countedrelease_and_take_ownership ()=0
 
virtual void pin () const noexcept=0
 
virtual void unpin () const =0
 
virtual i_ref_control_blockcontrol_block ()=0
 

Detailed Description

Definition at line 31 of file i_action.hpp.

Member Typedef Documentation

◆ abstract_type

Definition at line 34 of file i_action.hpp.

Member Function Documentation

◆ button_text()

virtual i_string const & neogfx::i_action::button_text ( ) const
pure virtual

◆ check()

i_action & neogfx::i_action::check ( bool  aChecked = true)
inline

Definition at line 84 of file i_action.hpp.

◆ checked_image()

virtual i_texture const & neogfx::i_action::checked_image ( ) const
pure virtual

◆ disable()

i_action & neogfx::i_action::disable ( bool  aDisabled = true)
inline

Definition at line 80 of file i_action.hpp.

◆ enable()

i_action & neogfx::i_action::enable ( bool  aEnabled = true)
inline

Definition at line 76 of file i_action.hpp.

◆ group()

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

◆ help_text()

virtual i_string const & neogfx::i_action::help_text ( ) const
pure virtual

◆ image()

virtual i_texture const & neogfx::i_action::image ( ) const
pure virtual

◆ is_checkable()

virtual bool neogfx::i_action::is_checkable ( ) const
pure virtual

◆ is_checked()

virtual bool neogfx::i_action::is_checked ( ) const
pure virtual

◆ is_disabled()

virtual bool neogfx::i_action::is_disabled ( ) const
pure virtual

◆ is_enabled()

virtual bool neogfx::i_action::is_enabled ( ) const
pure virtual

◆ is_separator()

virtual bool neogfx::i_action::is_separator ( ) const
pure virtual

◆ is_unchecked()

virtual bool neogfx::i_action::is_unchecked ( ) const
pure virtual

◆ menu_text()

virtual i_string const & neogfx::i_action::menu_text ( ) const
pure virtual

◆ set_button_text() [1/2]

virtual i_action & neogfx::i_action::set_button_text ( i_optional< i_string > const &  aButtonText)
pure virtual

◆ set_button_text() [2/2]

i_action & neogfx::i_action::set_button_text ( optional_text const &  aButtonText = optional_text{})
inline

Definition at line 107 of file i_action.hpp.

◆ set_checkable()

virtual i_action & neogfx::i_action::set_checkable ( bool  aCheckable = true)
pure virtual

◆ set_checked()

virtual i_action & neogfx::i_action::set_checked ( bool  aChecked)
pure virtual

◆ set_checked_image() [1/3]

i_action & neogfx::i_action::set_checked_image ( i_image const &  aImage)
inline

Definition at line 131 of file i_action.hpp.

◆ set_checked_image() [2/3]

virtual i_action & neogfx::i_action::set_checked_image ( i_texture const &  aTexture)
pure virtual

◆ set_checked_image() [3/3]

i_action & neogfx::i_action::set_checked_image ( std::string const &  aUri,
dimension  aDpiScaleFactor = 1.0,
texture_sampling  aSampling = texture_sampling::Scaled 
)
inline

Definition at line 127 of file i_action.hpp.

◆ set_enabled()

virtual i_action & neogfx::i_action::set_enabled ( bool  aEnabled)
pure virtual

◆ set_group()

virtual i_action & neogfx::i_action::set_group ( uuid const &  aGroup)
pure virtual

◆ set_help_text() [1/2]

virtual i_action & neogfx::i_action::set_help_text ( i_optional< i_string > const &  aHelpText)
pure virtual

◆ set_help_text() [2/2]

i_action & neogfx::i_action::set_help_text ( optional_text const &  aHelpText = optional_text{})
inline

Definition at line 115 of file i_action.hpp.

◆ set_image() [1/3]

i_action & neogfx::i_action::set_image ( i_image const &  aImage)
inline

Definition at line 123 of file i_action.hpp.

◆ set_image() [2/3]

virtual i_action & neogfx::i_action::set_image ( i_texture const &  aTexture)
pure virtual

◆ set_image() [3/3]

i_action & neogfx::i_action::set_image ( std::string const &  aUri,
dimension  aDpiScaleFactor = 1.0,
texture_sampling  aSampling = texture_sampling::Scaled 
)
inline

Definition at line 119 of file i_action.hpp.

◆ set_menu_text() [1/2]

virtual i_action & neogfx::i_action::set_menu_text ( i_optional< i_string > const &  aMenuText)
pure virtual

◆ set_menu_text() [2/2]

i_action & neogfx::i_action::set_menu_text ( optional_text const &  aMenuText = optional_text{})
inline

Definition at line 103 of file i_action.hpp.

◆ set_separator()

virtual i_action & neogfx::i_action::set_separator ( bool  aIsSeparator)
pure virtual

◆ set_shortcut() [1/3]

virtual i_action & neogfx::i_action::set_shortcut ( i_string const &  aShortcut)
pure virtual

◆ set_shortcut() [2/3]

virtual i_action & neogfx::i_action::set_shortcut ( optional_key_sequence const &  aShortcut)
pure virtual

◆ set_shortcut() [3/3]

i_action & neogfx::i_action::set_shortcut ( std::string const &  aShortcut)
inline

Definition at line 135 of file i_action.hpp.

◆ set_text() [1/2]

virtual i_action & neogfx::i_action::set_text ( i_optional< i_string > const &  aText)
pure virtual

◆ set_text() [2/2]

i_action & neogfx::i_action::set_text ( optional_text const &  aText = optional_text{})
inline

Definition at line 99 of file i_action.hpp.

◆ set_tool_tip_text() [1/2]

virtual i_action & neogfx::i_action::set_tool_tip_text ( i_optional< i_string > const &  aToolTipText)
pure virtual

◆ set_tool_tip_text() [2/2]

i_action & neogfx::i_action::set_tool_tip_text ( optional_text const &  aToolTipText = optional_text{})
inline

Definition at line 111 of file i_action.hpp.

◆ shortcut()

virtual optional_key_sequence const & neogfx::i_action::shortcut ( ) const
pure virtual

◆ text()

virtual i_string const & neogfx::i_action::text ( ) const
pure virtual

◆ toggle()

i_action & neogfx::i_action::toggle ( )
inline

Definition at line 92 of file i_action.hpp.

◆ tool_tip_text()

virtual i_string const & neogfx::i_action::tool_tip_text ( ) const
pure virtual

◆ uncheck()

i_action & neogfx::i_action::uncheck ( bool  aUnchecked = true)
inline

Definition at line 88 of file i_action.hpp.


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