C# Class Indiefreaks.Xna.Rendering.Gui.Control

Inheritance: IGuiElement, IContentHost
Exibir arquivo Open project: Indiefreaks/igf Class Usage Examples

Public Methods

Method Description
Clone ( ) : Control
HandleInput ( PlayerInput input, GameTime gameTime ) : void

Handles the input events from the player controlling the current control

Invalidate ( ) : void

Marks this control as requiring to be refreshed

LoadContent ( IContentCatalogue catalogue, Microsoft.Xna.Framework.Content.ContentManager manager ) : void

Load all XNA ContentManager content

LoseFocus ( ) : void

Removes focus from the current control

OnClicked ( ) : void

OnInputDown ( ) : void

OnInputLeft ( ) : void

OnInputRight ( ) : void

OnInputUp ( ) : void

PrepareRenderTarget ( GraphicsDevice device ) : void

Creates or recreate the RenderTarget where the control will be rendered

Refresh ( GraphicsDevice device ) : void

Refreshes the control properties when it requires to be redrawn to the RenderTarget

Render ( SpriteBatch spriteRenderer ) : void

Renders the control

SetFocus ( ) : void

Sets focus to the current control

UnloadContent ( IContentCatalogue catalogue ) : void

Unload all XNA ContentManager content

Protected Methods

Method Description
Control ( ) : System

Creates a new control instance

OnFocusAcquired ( ) : void

OnFocusLost ( ) : void

Private Methods

Method Description
IGuiElement ( GraphicsDevice device ) : void

Refreshes the control properties when it requires to be redrawn to the RenderTarget

IGuiElement ( SpriteBatch spriteRenderer ) : void

Renders the control

Method Details

Clone() public abstract method

public abstract Clone ( ) : Control
return Control

Control() protected method

Creates a new control instance
protected Control ( ) : System
return System

HandleInput() public method

Handles the input events from the player controlling the current control
public HandleInput ( PlayerInput input, GameTime gameTime ) : void
input Indiefreaks.Xna.Input.PlayerInput The current player input states
gameTime Microsoft.Xna.Framework.GameTime The GameTime instance
return void

Invalidate() public method

Marks this control as requiring to be refreshed
public Invalidate ( ) : void
return void

LoadContent() public abstract method

Load all XNA ContentManager content
public abstract LoadContent ( IContentCatalogue catalogue, Microsoft.Xna.Framework.Content.ContentManager manager ) : void
catalogue IContentCatalogue
manager Microsoft.Xna.Framework.Content.ContentManager XNA content manage
return void

LoseFocus() public method

Removes focus from the current control
public LoseFocus ( ) : void
return void

OnClicked() public method

public OnClicked ( ) : void
return void

OnFocusAcquired() protected method

protected OnFocusAcquired ( ) : void
return void

OnFocusLost() protected method

protected OnFocusLost ( ) : void
return void

OnInputDown() public method

public OnInputDown ( ) : void
return void

OnInputLeft() public method

public OnInputLeft ( ) : void
return void

OnInputRight() public method

public OnInputRight ( ) : void
return void

OnInputUp() public method

public OnInputUp ( ) : void
return void

PrepareRenderTarget() public method

Creates or recreate the RenderTarget where the control will be rendered
public PrepareRenderTarget ( GraphicsDevice device ) : void
device GraphicsDevice
return void

Refresh() public method

Refreshes the control properties when it requires to be redrawn to the RenderTarget
public Refresh ( GraphicsDevice device ) : void
device GraphicsDevice
return void

Render() public method

Renders the control
public Render ( SpriteBatch spriteRenderer ) : void
spriteRenderer Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

SetFocus() public method

Sets focus to the current control
public SetFocus ( ) : void
return void

UnloadContent() public abstract method

Unload all XNA ContentManager content
public abstract UnloadContent ( IContentCatalogue catalogue ) : void
catalogue IContentCatalogue
return void