Class Range
- Namespace
- Forma
- Assembly
- Forma.dll
public abstract class Range : TemplatedControl, IAddChild<Control>, IAddChild, INotifyPropertyChanged, IDisposable
- Inheritance
-
Range
- Implements
- Derived
- Inherited Members
Constructors
Range()
protected Range()
Properties
AccessibilityActions
public override AccessibilityActions AccessibilityActions { get; }
Property Value
AccessibilityValue
public override string AccessibilityValue { get; }
Property Value
AllowGreater
public bool AllowGreater { get; set; }
Property Value
AllowLesser
public bool AllowLesser { get; set; }
Property Value
ExpRatio
public bool ExpRatio { get; set; }
Property Value
MaxValue
public float MaxValue { get; set; }
Property Value
MinValue
public float MinValue { get; set; }
Property Value
Page
public float Page { get; set; }
Property Value
Ratio
public float Ratio { get; set; }
Property Value
Step
public float Step { get; set; }
Property Value
UseRoundedValues
public bool UseRoundedValues { get; set; }
Property Value
Value
public float Value { get; set; }
Property Value
Methods
GetAsRatio()
public float GetAsRatio()
Returns
SetAsRatio(float)
public void SetAsRatio(float ratio)
Parameters
ratiofloat
SetValueNoSignal(float)
public void SetValueNoSignal(float value)
Parameters
valuefloat
Share(Range)
public void Share(Range range)
Parameters
rangeRange
SnapToMultiple(float, float)
Snaps a value to the nearest multiple of step with no anchor, matching Godot's anchor-free Math::snapped (used e.g. to pre-snap SpinBox's arrow_step itself).
protected static float SnapToMultiple(float value, float step)
Parameters
Returns
SnapToStep(float, float)
Snaps a value to the nearest multiple of step anchored at MinValue, matching Godot's Range::_calc_value / _snapped_r128 formula (floor(x/step + 0.5) * step) - round-half-up, not .NET's default round-half-to-even.
protected float SnapToStep(float value, float step)
Parameters
Returns
Unshare()
public void Unshare()
Events
ValueChanged
public event Action<Range, float> ValueChanged