Class YauiSlider
A selectable that picks a value in a range by dragging along a track, or with the navigation keys along its direction. The fill and the handle are positioned absolutely in their parents (the tracks) by the slider: the fill from the start to the value, the handle centered on the value.
Assembly: Yaui.dll
View Source
Declaration
public class YauiSlider : YauiSelectable, IPointerEnterHandler, IPointerExitHandler, IPointerDownHandler, IPointerUpHandler, ISelectHandler, IDeselectHandler, IMoveHandler, IDragHandler, IInitializePotentialDragHandler
Inheritance: System.Object -> Yaui.YauiSelectable
Implements:
Expand
IPointerEnterHandler, IPointerExitHandler, IPointerDownHandler, IPointerUpHandler, ISelectHandler, IDeselectHandler, IMoveHandler, IDragHandler, IInitializePotentialDragHandler
Properties
Fill
View Source
Declaration
public YauiElement Fill { get; set; }
Handle
View Source
Declaration
public YauiElement Handle { get; set; }
Direction
View Source
Declaration
public TrackDirection Direction { get; set; }
MinValue
View Source
Declaration
public float MinValue { get; set; }
MaxValue
View Source
Declaration
public float MaxValue { get; set; }
WholeNumbers
View Source
Declaration
public bool WholeNumbers { get; set; }
Value
View Source
Declaration
public float Value { get; set; }
NormalizedValue
The value as a fraction of the range.
View Source
Declaration
public float NormalizedValue { get; set; }
OnValueChanged
View Source
Declaration
public YauiSlider.SliderEvent OnValueChanged { get; set; }
Methods
SetValueWithoutNotify(float)
View Source
Declaration
public void SetValueWithoutNotify(float input)
Parameters
| Type | Name |
|---|---|
System.Single | input |
OnEnable()
View Source
Declaration
protected override void OnEnable()
OnValidate()
View Source
Declaration
protected override void OnValidate()
OnPointerDown(PointerEventData)
View Source
Declaration
public override void OnPointerDown(PointerEventData eventData)
Parameters
| Type | Name |
|---|---|
PointerEventData | eventData |
OnInitializePotentialDrag(PointerEventData)
View Source
Declaration
public virtual void OnInitializePotentialDrag(PointerEventData eventData)
Parameters
| Type | Name |
|---|---|
PointerEventData | eventData |
OnDrag(PointerEventData)
View Source
Declaration
public virtual void OnDrag(PointerEventData eventData)
Parameters
| Type | Name |
|---|---|
PointerEventData | eventData |
OnMove(AxisEventData)
View Source
Declaration
public override void OnMove(AxisEventData eventData)
Parameters
| Type | Name |
|---|---|
AxisEventData | eventData |
FindSelectableOnLeft()
View Source
Declaration
public override YauiSelectable FindSelectableOnLeft()
Returns
FindSelectableOnRight()
View Source
Declaration
public override YauiSelectable FindSelectableOnRight()
Returns
FindSelectableOnUp()
View Source
Declaration
public override YauiSelectable FindSelectableOnUp()
Returns
FindSelectableOnDown()
View Source
Declaration
public override YauiSelectable FindSelectableOnDown()
Returns
Implements
IPointerEnterHandlerIPointerExitHandlerIPointerDownHandlerIPointerUpHandlerISelectHandlerIDeselectHandlerIMoveHandlerIDragHandlerIInitializePotentialDragHandler