C# Class 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.
Inheritance: Control
Afficher le fichier Open project: TomGillen/Myre Class Usage Examples

Méthodes publiques

Méthode Description
Draw ( SpriteBatch batch ) : void

Draws the control.

Label ( Control parent, SpriteFont font ) : System

Initializes a new instance of the Label class.

Private Methods

Méthode Description
UpdateSize ( ) : void

Method Details

Draw() public méthode

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.
Résultat void

Label() public méthode

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.
Résultat System