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
파일 보기 프로젝트 열기: TomGillen/Myre 1 사용 예제들

공개 메소드들

메소드 설명
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