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

The Label is a simple control that displays text. It can't receive focus
상속: Control
파일 보기 프로젝트 열기: Indiefreaks/igf 1 사용 예제들

공개 메소드들

메소드 설명
Clone ( ) : Control
Label ( string fontPath, string text ) : System

Creates a new instance with a font

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

Load all XNA ContentManager content

Refresh ( GraphicsDevice device ) : void

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

Render ( SpriteBatch spriteRenderer ) : void

Renders the control

UnloadContent ( IContentCatalogue catalogue ) : void

Unload all XNA ContentManager content

메소드 상세

Clone() 공개 메소드

public Clone ( ) : Control
리턴 Control

Label() 공개 메소드

Creates a new instance with a font
public Label ( string fontPath, string text ) : System
fontPath string The path to the font used by this Label
text string The text to display
리턴 System

LoadContent() 공개 메소드

Load all XNA ContentManager content
public LoadContent ( IContentCatalogue catalogue, Microsoft.Xna.Framework.Content.ContentManager manager ) : void
catalogue IContentCatalogue
manager Microsoft.Xna.Framework.Content.ContentManager XNA content manage
리턴 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

UnloadContent() 공개 메소드

Unload all XNA ContentManager content
public UnloadContent ( IContentCatalogue catalogue ) : void
catalogue IContentCatalogue
리턴 void