C# Class Knot3.Framework.Widgets.SliderItem

Inheritance: MenuItem, IMouseClickEventListener, IMouseMoveEventListener
Exibir arquivo Open project: knot3/knot3-code Class Usage Examples

Public Properties

Property Type Description
OnValueChanged Action

Private Properties

Property Type Description
Draw void
UpdateSlider void

Public Methods

Method Description
OnLeftClick ( Vector2 position, ClickState state, GameTime time ) : void
OnLeftMove ( ScreenPoint previousPosition, ScreenPoint currentPosition, ScreenPoint move, GameTime time ) : void
OnMove ( ScreenPoint previousPosition, ScreenPoint currentPosition, ScreenPoint move, GameTime time ) : void
OnNoMove ( ScreenPoint currentPosition, GameTime time ) : void
OnRightMove ( ScreenPoint previousPosition, ScreenPoint currentPosition, ScreenPoint move, GameTime time ) : void
SliderItem ( IScreen screen, DisplayLayer drawOrder, string text, int max, int min, int value ) : System

Erzeugt eine neue Instanz eines SliderItem-Objekts und initialisiert diese mit dem zugehörigen IGameScreen-Objekt. Zudem ist die Angabe der Zeichenreihenfolge, einem minimalen einstellbaren Wert, einem maximalen einstellbaren Wert und einem Standardwert Pflicht.

Private Methods

Method Description
Draw ( GameTime time ) : void
UpdateSlider ( ScreenPoint position, GameTime time ) : void

Method Details

OnLeftClick() public method

public OnLeftClick ( Vector2 position, ClickState state, GameTime time ) : void
position Vector2
state ClickState
time Microsoft.Xna.Framework.GameTime
return void

OnLeftMove() public method

public OnLeftMove ( ScreenPoint previousPosition, ScreenPoint currentPosition, ScreenPoint move, GameTime time ) : void
previousPosition ScreenPoint
currentPosition ScreenPoint
move ScreenPoint
time Microsoft.Xna.Framework.GameTime
return void

OnMove() public method

public OnMove ( ScreenPoint previousPosition, ScreenPoint currentPosition, ScreenPoint move, GameTime time ) : void
previousPosition ScreenPoint
currentPosition ScreenPoint
move ScreenPoint
time Microsoft.Xna.Framework.GameTime
return void

OnNoMove() public method

public OnNoMove ( ScreenPoint currentPosition, GameTime time ) : void
currentPosition ScreenPoint
time Microsoft.Xna.Framework.GameTime
return void

OnRightMove() public method

public OnRightMove ( ScreenPoint previousPosition, ScreenPoint currentPosition, ScreenPoint move, GameTime time ) : void
previousPosition ScreenPoint
currentPosition ScreenPoint
move ScreenPoint
time Microsoft.Xna.Framework.GameTime
return void

SliderItem() public method

Erzeugt eine neue Instanz eines SliderItem-Objekts und initialisiert diese mit dem zugehörigen IGameScreen-Objekt. Zudem ist die Angabe der Zeichenreihenfolge, einem minimalen einstellbaren Wert, einem maximalen einstellbaren Wert und einem Standardwert Pflicht.
public SliderItem ( IScreen screen, DisplayLayer drawOrder, string text, int max, int min, int value ) : System
screen IScreen
drawOrder DisplayLayer
text string
max int
min int
value int
return System

Property Details

OnValueChanged public_oe property

Wird aufgerufen, wenn der Wert geändert wurde
public Action OnValueChanged
return Action