Plasma Engine  2.0
Loading...
Searching...
No Matches
plImageSliderUiAttribute 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 plImageSliderUiAttribute:

Public Member Functions

 plImageSliderUiAttribute (const char *szImageGenerator)
 
- Public Member Functions inherited from plReflectedClass
virtual const plRTTIGetDynamicRTTI () const
 
bool IsInstanceOf (const plRTTI *pType) const
 Returns whether the type of this instance is of the given type or derived from it.
 
template<typename T >
PL_ALWAYS_INLINE bool IsInstanceOf () const
 Returns whether the type of this instance is of the given type or derived from it.
 

Public Attributes

plUntrackedString m_sImageGenerator
 

Additional Inherited Members

- Static Public Member Functions inherited from plNoBase
static const plRTTIGetStaticRTTI ()
 

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 an plClampValueAttribute 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 plQtImageSliderWidget::s_ImageGenerators. Search the codebase for that variable to determine which types of image generators are available. You can register custom generators as well.


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