C# Class Myre.UI.Controls.SimpleLabel

A simple label control for drawing text. Does not support glyphs or text wrapping. Use this for labels which change often.
Inheritance: Control
Mostra file Open project: TomGillen/Myre

Public Methods

Method Description
Draw ( SpriteBatch batch ) : void

Draws the control.

SimpleLabel ( Control parent, SpriteFont font ) : System

Initializes a new instance of the SimpleLabel class.

Method Details

Draw() public method

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.
return void

SimpleLabel() public method

Initializes a new instance of the SimpleLabel class.
public SimpleLabel ( Control parent, SpriteFont font ) : System
parent Control This controls parent control.
font Microsoft.Xna.Framework.Graphics.SpriteFont The font.
return System