C# Class Sce.Atf.Controls.FloatInputControl

Control for editing a bounded int value
Inheritance: UserControl
Afficher le fichier Open project: Pikachuxxxx/Razix

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
Constrain ( float value ) : float
EndEdit ( bool forceNewValue ) : void
SetValue ( float value, bool forceNewValue ) : void
UpdateTextBox ( ) : void

Method Details

FloatInputControl() public méthode

Constructor
public FloatInputControl ( ) : System
Résultat System

FloatInputControl() public méthode

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
Résultat System

GetPosition() protected méthode

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]
Résultat float

GetValue() protected méthode

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]
Résultat float

OnPaint() protected méthode

Handles the event and performs custom processing
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs A that contains the event data
Résultat void

OnValueChanged() protected méthode

Raises the E:Sce.Atf.Controls.IntInputControl.ValueChanged event
protected OnValueChanged ( EventArgs e ) : void
e EventArgs The instance containing the event data
Résultat void

OnValueEdited() protected méthode

Raises the E:Sce.Atf.Controls.IntInputControl.ValueEdited event
protected OnValueEdited ( EventArgs e ) : void
e EventArgs The instance containing the event data
Résultat void

SetMinMax() public méthode

Sets min and max
public SetMinMax ( float min, float max ) : void
min float min value
max float max value
Résultat void