C# 클래스 Indiefreaks.Xna.Rendering.Gui.Control

상속: IGuiElement, IContentHost
파일 보기 프로젝트 열기: Indiefreaks/igf 1 사용 예제들

공개 메소드들

메소드 설명
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