C# Class MonoGameUi.Textbox

Control für Texteingabe
Inheritance: Label
Mostrar archivo Open project: OctoAwesome/monogameui Class Usage Examples

Public Methods

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

Erzeugt eine neue Instanz der Textbox-Klasse

Protected Methods

Method Description
OnDrawContent ( SpriteBatch batch, Rectangle area, 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.

OnKeyTextPress ( KeyTextEventArgs args ) : void

Method Details

OnDrawContent() protected method

Malt den Content des Controls
protected OnDrawContent ( SpriteBatch batch, Rectangle area, GameTime gameTime, float alpha ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch Spritebatch
area 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

OnKeyTextPress() protected method

protected OnKeyTextPress ( KeyTextEventArgs args ) : void
args KeyTextEventArgs
return void

Textbox() public method

Erzeugt eine neue Instanz der Textbox-Klasse
public Textbox ( BaseScreenComponent manager, string style = "" ) : System
manager BaseScreenComponent
style string
return System