C# Класс Indiefreaks.Xna.Rendering.Gui.Control

Наследование: IGuiElement, IContentHost
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Control ( ) : System

Creates a new control instance

OnFocusAcquired ( ) : void

OnFocusLost ( ) : void

Приватные методы

Метод Описание
IGuiElement ( GraphicsDevice device ) : void

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

IGuiElement ( SpriteBatch spriteRenderer ) : void

Renders the control

Описание методов

Clone() публичный абстрактный Метод

public abstract Clone ( ) : Control
Результат Control

Control() защищенный Метод

Creates a new control instance
protected Control ( ) : System
Результат System

HandleInput() публичный Метод

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
Результат void

Invalidate() публичный Метод

Marks this control as requiring to be refreshed
public Invalidate ( ) : void
Результат void

LoadContent() публичный абстрактный Метод

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
Результат void

LoseFocus() публичный Метод

Removes focus from the current control
public LoseFocus ( ) : void
Результат void

OnClicked() публичный Метод

public OnClicked ( ) : void
Результат void

OnFocusAcquired() защищенный Метод

protected OnFocusAcquired ( ) : void
Результат void

OnFocusLost() защищенный Метод

protected OnFocusLost ( ) : void
Результат void

OnInputDown() публичный Метод

public OnInputDown ( ) : void
Результат void

OnInputLeft() публичный Метод

public OnInputLeft ( ) : void
Результат void

OnInputRight() публичный Метод

public OnInputRight ( ) : void
Результат void

OnInputUp() публичный Метод

public OnInputUp ( ) : void
Результат void

PrepareRenderTarget() публичный Метод

Creates or recreate the RenderTarget where the control will be rendered
public PrepareRenderTarget ( GraphicsDevice device ) : void
device GraphicsDevice
Результат void

Refresh() публичный Метод

Refreshes the control properties when it requires to be redrawn to the RenderTarget
public Refresh ( GraphicsDevice device ) : void
device GraphicsDevice
Результат void

Render() публичный Метод

Renders the control
public Render ( SpriteBatch spriteRenderer ) : void
spriteRenderer Microsoft.Xna.Framework.Graphics.SpriteBatch
Результат void

SetFocus() публичный Метод

Sets focus to the current control
public SetFocus ( ) : void
Результат void

UnloadContent() публичный абстрактный Метод

Unload all XNA ContentManager content
public abstract UnloadContent ( IContentCatalogue catalogue ) : void
catalogue IContentCatalogue
Результат void