![]() |
XII Release 0.1.0
|
A menu that lists all values of an enum type. More...
#include <BaseActions.h>
Public Member Functions | |
xiiEnumerationMenuAction (const xiiActionContext &context, xiiStringView sName, xiiStringView sIconPath) | |
void | InitEnumerationType (const xiiRTTI *pEnumerationType) |
virtual void | GetEntries (xiiDynamicArray< Item > &out_entries) override |
virtual xiiInt64 | GetValue () const =0 |
![]() | |
xiiDynamicMenuAction (const xiiActionContext &context, xiiStringView sName, xiiStringView sIconPath) | |
![]() | |
xiiMenuAction (const xiiActionContext &context, xiiStringView sName, xiiStringView sIconPath) | |
virtual void | Execute (const xiiVariant &value) override |
![]() | |
xiiNamedAction (const xiiActionContext &context, xiiStringView sName, xiiStringView sIconPath) | |
xiiStringView | GetName () const |
xiiStringView | GetAdditionalDisplayString () |
void | SetAdditionalDisplayString (xiiStringView sString, bool bTriggerUpdate=true) |
xiiStringView | GetIconPath () const |
void | SetIconPath (xiiStringView sIconPath) |
![]() | |
xiiAction (const xiiActionContext &context) | |
void | TriggerUpdate () |
const xiiActionContext & | GetContext () const |
xiiActionDescriptorHandle | GetDescriptorHandle () |
![]() | |
virtual const xiiRTTI * | GetDynamicRTTI () const |
bool | IsInstanceOf (const xiiRTTI *pType) const |
Returns whether the type of this instance is of the given type or derived from it. | |
template<typename T> | |
XII_ALWAYS_INLINE bool | IsInstanceOf () const |
Returns whether the type of this instance is of the given type or derived from it. | |
Protected Attributes | |
const xiiRTTI * | m_pEnumerationType |
![]() | |
xiiString | m_sName |
xiiString | m_sAdditionalDisplayString |
xiiString | m_sIconPath |
![]() | |
xiiActionContext | m_Context |
Additional Inherited Members | |
![]() | |
static const xiiRTTI * | GetStaticRTTI () |
![]() | |
xiiEvent< xiiAction * > | m_StatusUpdateEvent |
Fire when the state of the action changes (enabled, value etc...) | |
A menu that lists all values of an enum type.
|
overridevirtual |
Implements xiiDynamicMenuAction.