C# Class TopHatHacker.Tools.OnScreenKeyboard

on screen keyboard
Inheritance: Microsoft.Xna.Framework.DrawableGameComponent
ファイルを表示 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_oe property

public Color BackgroundColor
return Color

ButtonColor1 public_oe property

public Color ButtonColor1
return Color

ButtonColor2 public_oe property

public Color ButtonColor2
return Color

Caps public_oe property

public bool Caps
return bool

Enabled public_oe property

public bool Enabled
return bool

Font public_oe property

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

TextColor public_oe property

public Color TextColor
return Color