C# Класс Myre.UI.Controls.Label

A control which draws glyphed text.
Changing the text, font or width will cause many string allocations. The label automatically sets it's size to that of its text when the text, justification or font changes.
Наследование: Control
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Draw ( SpriteBatch batch ) : void

Draws the control.

Label ( Control parent, SpriteFont font ) : System

Initializes a new instance of the Label class.

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

Метод Описание
UpdateSize ( ) : void

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

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

Draws the control.
public Draw ( SpriteBatch batch ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch An spritebactch already started for alpha blending with deferred sort mode.
Результат void

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

Initializes a new instance of the Label class.
public Label ( Control parent, SpriteFont font ) : System
parent Control The parent.
font Microsoft.Xna.Framework.Graphics.SpriteFont The font.
Результат System