メインコンテンツまでスキップ

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​
TypeName
System.Singleinput

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​
TypeName
PointerEventDataeventData

OnInitializePotentialDrag(PointerEventData)​

View Source​
Declaration
public virtual void OnInitializePotentialDrag(PointerEventData eventData)
Parameters​
TypeName
PointerEventDataeventData

OnDrag(PointerEventData)​

View Source​
Declaration
public virtual void OnDrag(PointerEventData eventData)
Parameters​
TypeName
PointerEventDataeventData

OnMove(AxisEventData)​

View Source​
Declaration
public override void OnMove(AxisEventData eventData)
Parameters​
TypeName
AxisEventDataeventData

FindSelectableOnLeft()​

View Source​
Declaration
public override YauiSelectable FindSelectableOnLeft()
Returns​

Yaui.YauiSelectable

FindSelectableOnRight()​

View Source​
Declaration
public override YauiSelectable FindSelectableOnRight()
Returns​

Yaui.YauiSelectable

FindSelectableOnUp()​

View Source​
Declaration
public override YauiSelectable FindSelectableOnUp()
Returns​

Yaui.YauiSelectable

FindSelectableOnDown()​

View Source​
Declaration
public override YauiSelectable FindSelectableOnDown()
Returns​

Yaui.YauiSelectable

Implements​

  • IPointerEnterHandler
  • IPointerExitHandler
  • IPointerDownHandler
  • IPointerUpHandler
  • ISelectHandler
  • IDeselectHandler
  • IMoveHandler
  • IDragHandler
  • IInitializePotentialDragHandler