C# Class WaveEngine.Components.UI.TextControl

The text block.
Inheritance: Control
Show file Open project: WaveEngine/Components Class Usage Examples

Protected Properties

Property Type Description
disposed bool
isGlobalAsset bool

Private Properties

Property Type Description
UpdateAlignment void
UpdateSize void

Public Methods

Method Description
CalculateAlignmentOffset ( System.Vector2 size ) : float

Calculates the alignment offset.

TextControl ( ) : System

Initializes a new instance of the TextControl class.

TextControl ( string fontPath ) : System

Initializes a new instance of the TextControl class.

TextControl ( string fontPath, bool isGlobalAsset ) : System

Initializes a new instance of the TextControl class.

Protected Methods

Method Description
DefaultValues ( ) : void

Sets default values for this instances.

Dispose ( bool disposing ) : void

The dispose.

Initialize ( ) : void

Initializes this instance.

Private Methods

Method Description
UpdateAlignment ( ) : void

Updates the alignment.

UpdateSize ( ) : void

Updates the size.

Method Details

CalculateAlignmentOffset() public method

Calculates the alignment offset.
public CalculateAlignmentOffset ( System.Vector2 size ) : float
size System.Vector2 The size.
return float

DefaultValues() protected method

Sets default values for this instances.
protected DefaultValues ( ) : void
return void

Dispose() protected method

The dispose.
protected Dispose ( bool disposing ) : void
disposing bool /// The disposing. ///
return void

Initialize() protected method

Initializes this instance.
protected Initialize ( ) : void
return void

TextControl() public method

Initializes a new instance of the TextControl class.
public TextControl ( ) : System
return System

TextControl() public method

Initializes a new instance of the TextControl class.
public TextControl ( string fontPath ) : System
fontPath string /// The font path. ///
return System

TextControl() public method

Initializes a new instance of the TextControl class.
public TextControl ( string fontPath, bool isGlobalAsset ) : System
fontPath string /// The font Path. ///
isGlobalAsset bool /// The is Global Asset. ///
return System

Property Details

disposed protected property

The disposed.
protected bool disposed
return bool

isGlobalAsset protected property

The is global asset.
protected bool isGlobalAsset
return bool