ezEngine Release 26.9
Loading...
Searching...
No Matches
ezActionDescriptor Struct Reference

Public Member Functions

 ezActionDescriptor (ezActionType::Enum type, ezActionScope::Enum scope, const char *szName, const char *szCategoryPath, const char *szShortcut, CreateActionFunc createAction, DeleteActionFunc deleteAction=nullptr)
 
ezActionCreateAction (const ezActionContext &context) const
 
void DeleteAction (ezAction *pAction) const
 
void UpdateExistingActions ()
 
ezArrayPtr< ezAction *const > GetCreatedActions () const
 

Public Attributes

ezActionDescriptorHandle m_Handle
 
ezEnum< ezActionTypem_Type
 
ezEnum< ezActionScopem_Scope
 
ezString m_sActionName
 Unique within category path, shown in key configuration dialog.
 
ezString m_sCategoryPath
 Category in key configuration dialog, e.g. "Tree View" or "File".
 
ezString m_sShortcut
 
ezString m_sDefaultShortcut
 

Member Function Documentation

◆ GetCreatedActions()

ezArrayPtr< ezAction *const > ezActionDescriptor::GetCreatedActions ( ) const
inline

The action instances that currently exist for this descriptor.

One descriptor can have any number of live instances, because the same action may be mapped into several windows, menus and toolbars at once, each with its own context. State such as ezButtonAction::IsEnabled() lives on these instances, not on the descriptor, so this is the only way to observe an action's current state without creating an instance.


The documentation for this struct was generated from the following files: