Use the Slider 2D node as a building block for a 2D UI control that lets the application user change a numerical value using a visual indicator between a minimum and a maximum value. More...
#include <kanzi/ui/node/slider2d.hpp>
Public Types | |
typedef Slider2DConceptImplType | ConceptClass |
Slider concept implementation, defining the base class (Component) and presenter (TrajectoryLayout2D). | |
typedef Slider2DPresenterType | PresenterClass |
Public Types inherited from kanzi::Slider2DConceptImpl< TBaseClass, TPresenterClass, TDerivedClass > | |
typedef TPresenterClass | PresenterClass |
typedef shared_ptr< TPresenterClass > | PresenterSharedPtr |
Static Public Member Functions | |
static Slider2DSharedPtr | create (Domain *domain, string_view name) |
Creates a Slider3D node. | |
static PropertyTypeEditorInfoSharedPtr | makeEditorInfo () |
Static Public Member Functions inherited from kanzi::Slider2DConceptImpl< TBaseClass, TPresenterClass, TDerivedClass > | |
static PropertyTypeEditorInfoSharedPtr | makeEditorInfo () |
Static Public Member Functions inherited from kanzi::SliderConcept | |
static PropertyTypeEditorInfoSharedPtr | makeEditorInfo () |
Protected Member Functions | |
Slider2D (Domain *domain, string_view name) | |
Constructor. | |
Protected Member Functions inherited from kanzi::Slider2DConceptImpl< TBaseClass, TPresenterClass, TDerivedClass > | |
void | arrangeOverride (Vector2 actualSize) override |
Node2D::arrangeOverride() implementation. | |
void | findLayout () |
Vector2 | measureOverride (Vector2 availableSize) override |
Node2D::measureOverride() implementation. | |
void | onAttached () override |
Additional Inherited Members | |
Public Member Functions inherited from kanzi::Slider2DConceptImpl< TBaseClass, TPresenterClass, TDerivedClass > | |
float | getMaxDistanceFromCurve () const |
Gets the value of MaxDistanceFromCurveProperty. | |
const PresenterSharedPtr & | getPresenter () const |
void | hitPointChanged () |
void | initialize () |
void | setMaxDistanceFromCurve (float value) |
Sets the value of MaxDistanceFromCurveProperty. | |
Slider2DConceptImpl (Domain *domain, string_view name) | |
Static Public Attributes inherited from kanzi::SliderConcept | |
static PropertyType< float > | MaxDistanceFromCurveProperty |
MaxDistanceFromCurve property. | |
Use the Slider 2D node as a building block for a 2D UI control that lets the application user change a numerical value using a visual indicator between a minimum and a maximum value.
To disable a Slider 2D node, set the Node::EnabledProperty to false. A disabled Slider 2D does not respond to input. To visually indicate the disabled state of a Slider 2D node, create a state manager and use the Node::EffectivelyEnabledProperty
as its controller property. When Kanzi disables a Slider 2D node, it cancels current gestures and preserves the slider value.
To create a Slider 2D node with a custom appearance:
Slider concept implementation, defining the base class (Component) and presenter (TrajectoryLayout2D).
|
explicitprotected |
Constructor.
domain | The UI domain the new node belongs to. |
name | The name of the node. |
|
static |
Creates a Slider3D node.
domain | The UI domain the new node belongs to. |
name | The name of the stack layout. |
|
static |