C# Класс Sce.Atf.Controls.FloatInputControl

Control for editing a bounded int value
Наследование: UserControl
Показать файл Открыть проект

Открытые методы

Метод Описание
FloatInputControl ( ) : System

Constructor

FloatInputControl ( float value, float min, float max ) : System

Constructor with initial and bounding values

SetMinMax ( float min, float max ) : void

Sets min and max

Защищенные методы

Метод Описание
GetPosition ( float value ) : float

Translates from value to normalized position

Override this method to change the mapping between position and value, for example, for a logarithmic slider. This should be the inverse of GetValue().

GetValue ( float position ) : float

Translates from normalized trackbar position to value

Override this method to change the mapping between position and value, for example, for a logarithmic slider.

OnPaint ( PaintEventArgs e ) : void

Handles the event and performs custom processing

OnValueChanged ( EventArgs e ) : void

Raises the E:Sce.Atf.Controls.IntInputControl.ValueChanged event

OnValueEdited ( EventArgs e ) : void

Raises the E:Sce.Atf.Controls.IntInputControl.ValueEdited event

Приватные методы

Метод Описание
Constrain ( float value ) : float
EndEdit ( bool forceNewValue ) : void
SetValue ( float value, bool forceNewValue ) : void
UpdateTextBox ( ) : void

Описание методов

FloatInputControl() публичный Метод

Constructor
public FloatInputControl ( ) : System
Результат System

FloatInputControl() публичный Метод

Constructor with initial and bounding values
public FloatInputControl ( float value, float min, float max ) : System
value float Initial value
min float Minimum value
max float Maximum value
Результат System

GetPosition() защищенный Метод

Translates from value to normalized position
Override this method to change the mapping between position and value, for example, for a logarithmic slider. This should be the inverse of GetValue().
protected GetPosition ( float value ) : float
value float The value, in [Min..Max]
Результат float

GetValue() защищенный Метод

Translates from normalized trackbar position to value
Override this method to change the mapping between position and value, for example, for a logarithmic slider.
protected GetValue ( float position ) : float
position float The normalized trackbar position, in [0..1]
Результат float

OnPaint() защищенный Метод

Handles the event and performs custom processing
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs A that contains the event data
Результат void

OnValueChanged() защищенный Метод

Raises the E:Sce.Atf.Controls.IntInputControl.ValueChanged event
protected OnValueChanged ( EventArgs e ) : void
e EventArgs The instance containing the event data
Результат void

OnValueEdited() защищенный Метод

Raises the E:Sce.Atf.Controls.IntInputControl.ValueEdited event
protected OnValueEdited ( EventArgs e ) : void
e EventArgs The instance containing the event data
Результат void

SetMinMax() публичный Метод

Sets min and max
public SetMinMax ( float min, float max ) : void
min float min value
max float max value
Результат void