C# Class MonoGameUi.Slider

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

Méthodes publiques

Méthode Description
Slider ( BaseScreenComponent manager, string style = "" ) : System

Erzeugt einen neuen Slider.

Méthodes protégées

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

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.
Résultat void

OnKeyPress() protected méthode

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.
Résultat void

OnLeftMouseDown() protected méthode

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.
Résultat void

OnLeftMouseUp() protected méthode

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.
Résultat void

Slider() public méthode

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