![]() |
XII Release 0.1.0
|
Displays the value range as an image, allowing users to pick a value like on a slider. More...
#include <PropertyAttributes.h>
Public Member Functions | |
xiiImageSliderUiAttribute (xiiStringView sImageGenerator) | |
![]() | |
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. | |
Public Attributes | |
xiiUntrackedString | m_sImageGenerator |
Additional Inherited Members | |
![]() | |
static const xiiRTTI * | GetStaticRTTI () |
Displays the value range as an image, allowing users to pick a value like on a slider.
This attribute always has to be combined with a xiiClampValueAttribute to define the min and max value range. The constructor takes the name of an image generator. The generator is used to build the QImage used for the slider background.
Image generators are registered through xiiQtImageSliderWidget::s_ImageGenerators. Search the codebase for that variable to determine which types of image generators are available. Custom generators can be registered as well.