![]() |
XII Release 0.1.0
|
An action that represents an integer value within a fixed range, and gets displayed as a slider. More...
#include <BaseActions.h>
Public Member Functions | |
xiiSliderAction (const xiiActionContext &context, xiiStringView sName) | |
bool | IsEnabled () const |
void | SetEnabled (bool bEnable, bool bTriggerUpdate=true) |
bool | IsVisible () const |
void | SetVisible (bool bVisible, bool bTriggerUpdate=true) |
void | GetRange (xiiInt32 &out_iMin, xiiInt32 &out_iMax) const |
void | SetRange (xiiInt32 iMin, xiiInt32 iMax, bool bTriggerUpdate=true) |
xiiInt32 | GetValue () const |
void | SetValue (xiiInt32 iVal, bool bTriggerUpdate=true) |
![]() | |
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) | |
virtual void | Execute (const xiiVariant &value)=0 |
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 | |
bool | m_bEnabled |
bool | m_bVisible |
xiiInt32 | m_iMinValue |
xiiInt32 | m_iMaxValue |
xiiInt32 | m_iCurValue |
![]() | |
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...) | |
An action that represents an integer value within a fixed range, and gets displayed as a slider.