Toast Engine
Loading...
Searching...
No Matches
editor.Components.Elements.DragFloatBox Class Referencesealed
Inheritance diagram for editor.Components.Elements.DragFloatBox:
Collaboration diagram for editor.Components.Elements.DragFloatBox:

Static Public Attributes

static readonly StyledProperty< float > ValueProperty
static readonly StyledProperty< int > DecimalsProperty
 Number of decimal places always shown.
static readonly StyledProperty< float > CoarseStepProperty
static readonly StyledProperty< float > FineStepProperty
Static Public Attributes inherited from editor.Components.Elements.DragNumberBoxBase
static readonly StyledProperty< string?> UnitProperty
 Optional suffix drawn after the number (e.g. "m", "kg").
static readonly StyledProperty< double > MinimumProperty
static readonly StyledProperty< double > MaximumProperty
static readonly StyledProperty< double > DragSensitivityProperty
 Pixels the pointer must travel to move the value by one step.
static readonly StyledProperty< IBrush?> EditBorderBrushProperty
static readonly DirectProperty< DragNumberBoxBase, bool > IsEditingProperty
static readonly DirectProperty< DragNumberBoxBase, string > DisplaySignProperty
static readonly DirectProperty< DragNumberBoxBase, string > DisplayIntegerProperty
static readonly DirectProperty< DragNumberBoxBase, string > DisplayPointProperty
static readonly DirectProperty< DragNumberBoxBase, string > DisplayDigitsProperty

Protected Member Functions

override double GetDouble ()
override void SetDouble (double value)
override string RawEditText ()
override bool TryParseEdit (string text, out double value)
override void RebuildDisplay ()
override void OnPropertyChanged (AvaloniaPropertyChangedEventArgs change)
Protected Member Functions inherited from editor.Components.Elements.DragNumberBoxBase
double GetDouble ()
void SetDouble (double value)
string RawEditText ()
bool TryParseEdit (string text, out double value)
void RebuildDisplay ()
double ClampDrag (double value)
void SetDisplayParts (string sign, string integer, string point, string digits)
void OnValueChanged ()
override void OnApplyTemplate (TemplateAppliedEventArgs e)

Properties

float Value [get, set]
int Decimals [get, set]
float CoarseStep [get, set]
float FineStep [get, set]
override double CoarseStepAmount [get]
override double FineStepAmount [get]
Properties inherited from editor.Components.Elements.DragNumberBoxBase
string? Unit [get, set]
double Minimum [get, set]
double Maximum [get, set]
double DragSensitivity [get, set]
IBrush? EditBorderBrush [get, set]
bool IsEditing [get]
string DisplaySign [get]
string DisplayInteger [get]
string DisplayPoint [get]
string DisplayDigits [get]
override Type StyleKeyOverride [get]
double CoarseStepAmount [get]
double FineStepAmount [get]

Member Data Documentation

◆ CoarseStepProperty

readonly StyledProperty<float> editor.Components.Elements.DragFloatBox.CoarseStepProperty
static
Initial value:
=
AvaloniaProperty.Register<DragFloatBox, float>(nameof(CoarseStep), 1f)
Definition DragFloatBox.cs:13

◆ DecimalsProperty

readonly StyledProperty<int> editor.Components.Elements.DragFloatBox.DecimalsProperty
static
Initial value:
=
AvaloniaProperty.Register<DragFloatBox, int>(nameof(Decimals), 3)

Number of decimal places always shown.

◆ FineStepProperty

readonly StyledProperty<float> editor.Components.Elements.DragFloatBox.FineStepProperty
static
Initial value:
=
AvaloniaProperty.Register<DragFloatBox, float>(nameof(FineStep), 0.001f)

◆ ValueProperty

readonly StyledProperty<float> editor.Components.Elements.DragFloatBox.ValueProperty
static
Initial value:
=
AvaloniaProperty.Register<DragFloatBox, float>(nameof(Value), defaultBindingMode: BindingMode.TwoWay)

The documentation for this class was generated from the following file:
  • editor/Components/Elements/DragFloatBox.cs