C# Class Evbpc.Framework.Xna.Windows.Forms.Form

Represents a Framework.Windows.Forms.Form that can be drawn with an XNA SpriteBatch.
Inheritance: Framework.Windows.Forms.Form
显示文件 Open project: EBrown8534/Framework

Public Methods

Method Description
DrawAll ( SpriteBatch s ) : void

This call must be made in order for any forms to be displayed.

Form ( string name ) : System

Creates a new instance of the Form class.

UpdateAll ( GameTime gt, bool hasFocus ) : void

This should update anything that requires mouse, keyboard, gamepad, joystick, or other input controls. (Dragging, etc.)

Private Methods

Method Description
Draw ( SpriteBatch s ) : void
GetActiveForm ( Evbpc.Framework.Drawing p ) : int
KeyStateMan_KeyDown ( object sender, KeyEventArgs e ) : void
KeyStateMan_KeyPress ( object sender, KeyPressEventArgs e ) : void
KeyStateMan_KeyUp ( object sender, KeyEventArgs e ) : void
Update ( bool hasFocus, GameTime gt ) : void

Method Details

DrawAll() public static method

This call must be made in order for any forms to be displayed.
public static DrawAll ( SpriteBatch s ) : void
s Microsoft.Xna.Framework.Graphics.SpriteBatch The SpriteBatch to do the drawing.
return void

Form() public method

Creates a new instance of the Form class.
public Form ( string name ) : System
name string
return System

UpdateAll() public static method

This should update anything that requires mouse, keyboard, gamepad, joystick, or other input controls. (Dragging, etc.)
public static UpdateAll ( GameTime gt, bool hasFocus ) : void
gt Microsoft.Xna.Framework.GameTime A value representing the elapsed GameTime since the last update.
hasFocus bool A value indicating whether or not the application has focus.
return void