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

The Label is a simple control that displays text. It can't receive focus
Наследование: Control
Показать файл Открыть проект Примеры использования класса

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

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