C# Class MonoGameUi.Slider

Das Slider-Control erlaubt das Verschieben eines Reglers per Maus oder Tastatur.
Inheritance: Control
Datei anzeigen Open project: OctoAwesome/monogameui Class Usage Examples

Public Methods

Method Description
Slider ( BaseScreenComponent manager, string style = "" ) : System

Erzeugt einen neuen Slider.

Protected Methods

Method Description
OnDrawContent ( SpriteBatch batch, Rectangle contentArea, GameTime gameTime, float alpha ) : void

Malt den Content des Controls

OnKeyPress ( Microsoft.Xna.Framework.Input.KeyEventArgs args ) : void

Wird aufgerufen, wenn eine Taste gedrückt ist.

OnLeftMouseDown ( Microsoft.Xna.Framework.Input.MouseEventArgs args ) : void

Wird aufgerufen, wenn die linke Maustaste heruntergedrückt wird.

OnLeftMouseUp ( Microsoft.Xna.Framework.Input.MouseEventArgs args ) : void

Wird aufgerufen, wenn die linke Maustaste losgelassen wird.

Method Details

OnDrawContent() protected method

Malt den Content des Controls
protected OnDrawContent ( SpriteBatch batch, Rectangle contentArea, GameTime gameTime, float alpha ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch Spritebatch
contentArea Microsoft.Xna.Framework.Rectangle Bereich für den Content in absoluten Koordinaten
gameTime Microsoft.Xna.Framework.GameTime GameTime
alpha float Die Transparenz des Controls.
return void

OnKeyPress() protected method

Wird aufgerufen, wenn eine Taste gedrückt ist.
protected OnKeyPress ( Microsoft.Xna.Framework.Input.KeyEventArgs args ) : void
args Microsoft.Xna.Framework.Input.KeyEventArgs Zusätzliche Daten zum Event.
return void

OnLeftMouseDown() protected method

Wird aufgerufen, wenn die linke Maustaste heruntergedrückt wird.
protected OnLeftMouseDown ( Microsoft.Xna.Framework.Input.MouseEventArgs args ) : void
args Microsoft.Xna.Framework.Input.MouseEventArgs Weitere Informationen zum Event.
return void

OnLeftMouseUp() protected method

Wird aufgerufen, wenn die linke Maustaste losgelassen wird.
protected OnLeftMouseUp ( Microsoft.Xna.Framework.Input.MouseEventArgs args ) : void
args Microsoft.Xna.Framework.Input.MouseEventArgs Weitere Informationen zum Event.
return void

Slider() public method

Erzeugt einen neuen Slider.
public Slider ( BaseScreenComponent manager, string style = "" ) : System
manager BaseScreenComponent Der verwendete
style string (Optional) Der zu verwendende Style.
return System