XII Release 0.1.0
Loading...
Searching...
No Matches
xiiImageSliderUiAttribute Class Reference

Displays the value range as an image, allowing users to pick a value like on a slider. More...

#include <PropertyAttributes.h>

Inheritance diagram for xiiImageSliderUiAttribute:
[legend]

Public Member Functions

 xiiImageSliderUiAttribute (xiiStringView sImageGenerator)
 
- Public Member Functions inherited from xiiReflectedClass
virtual const xiiRTTIGetDynamicRTTI () 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 Public Member Functions inherited from xiiNoBase
static const xiiRTTIGetStaticRTTI ()
 

Detailed Description

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.


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