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

Inheritance: IGuiElement, IContentHost
Afficher le fichier Open project: Indiefreaks/igf Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Control ( ) : System

Creates a new control instance

OnFocusAcquired ( ) : void

OnFocusLost ( ) : void

Private Methods

Méthode 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 méthode

public abstract Clone ( ) : Control
Résultat Control

Control() protected méthode

Creates a new control instance
protected Control ( ) : System
Résultat System

HandleInput() public méthode

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
Résultat void

Invalidate() public méthode

Marks this control as requiring to be refreshed
public Invalidate ( ) : void
Résultat void

LoadContent() public abstract méthode

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
Résultat void

LoseFocus() public méthode

Removes focus from the current control
public LoseFocus ( ) : void
Résultat void

OnClicked() public méthode

public OnClicked ( ) : void
Résultat void

OnFocusAcquired() protected méthode

protected OnFocusAcquired ( ) : void
Résultat void

OnFocusLost() protected méthode

protected OnFocusLost ( ) : void
Résultat void

OnInputDown() public méthode

public OnInputDown ( ) : void
Résultat void

OnInputLeft() public méthode

public OnInputLeft ( ) : void
Résultat void

OnInputRight() public méthode

public OnInputRight ( ) : void
Résultat void

OnInputUp() public méthode

public OnInputUp ( ) : void
Résultat void

PrepareRenderTarget() public méthode

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

Refresh() public méthode

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

Render() public méthode

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

SetFocus() public méthode

Sets focus to the current control
public SetFocus ( ) : void
Résultat void

UnloadContent() public abstract méthode

Unload all XNA ContentManager content
public abstract UnloadContent ( IContentCatalogue catalogue ) : void
catalogue IContentCatalogue
Résultat void