C# Class TopHatHacker.Tools.OnScreenKeyboard

on screen keyboard
Inheritance: Microsoft.Xna.Framework.DrawableGameComponent
Show file Open project: tophathacker/XnaOnScreenKeyboard Class Usage Examples

Public Properties

Property Type Description
BackgroundColor Color
ButtonColor1 Color
ButtonColor2 Color
Caps bool
Enabled bool
Font Microsoft.Xna.Framework.Graphics.SpriteFont
TextColor Color

Public Methods

Method Description
Draw ( GameTime gameTime ) : void

Draws the keyboard

GetState ( ) : KeyboardState
Initialize ( ) : void
OnScreenKeyboard ( Microsoft.Xna.Framework.Game game ) : System

Constructor.

Update ( GameTime gameTime ) : void
UpdateKeyboardSize ( object o, System e ) : void

Protected Methods

Method Description
LoadContent ( ) : void

Creates the graphics resources needed to draw the overlay.

figureOutKeyboardSize ( ) : void

Private Methods

Method Description
touched ( Vector2 position, GameTime gameTime ) : bool

Method Details

Draw() public method

Draws the keyboard
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

GetState() public method

public GetState ( ) : KeyboardState
return Microsoft.Xna.Framework.Input.KeyboardState

Initialize() public method

public Initialize ( ) : void
return void

LoadContent() protected method

Creates the graphics resources needed to draw the overlay.
protected LoadContent ( ) : void
return void

OnScreenKeyboard() public method

Constructor.
public OnScreenKeyboard ( Microsoft.Xna.Framework.Game game ) : System
game Microsoft.Xna.Framework.Game
return System

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

UpdateKeyboardSize() public method

public UpdateKeyboardSize ( object o, System e ) : void
o object
e System
return void

figureOutKeyboardSize() protected method

protected figureOutKeyboardSize ( ) : void
return void

Property Details

BackgroundColor public property

public Color BackgroundColor
return Color

ButtonColor1 public property

public Color ButtonColor1
return Color

ButtonColor2 public property

public Color ButtonColor2
return Color

Caps public property

public bool Caps
return bool

Enabled public property

public bool Enabled
return bool

Font public property

Set or get the font file.
public SpriteFont,Microsoft.Xna.Framework.Graphics Font
return Microsoft.Xna.Framework.Graphics.SpriteFont

TextColor public property

public Color TextColor
return Color