AgateLib.ImplementationBase.FontSurfaceImpl Class Reference

Implements a FontSurface. More...

Inheritance diagram for AgateLib.ImplementationBase.FontSurfaceImpl:

AgateLib.BitmapFont.BitmapFontImpl

List of all members.

Public Member Functions

abstract int StringDisplayWidth (string text)
 Measures the width of the given string.
abstract int StringDisplayHeight (string text)
 Measures the height of the given string.
abstract Size StringDisplaySize (string text)
 Measures the size of the given string.
abstract void DrawText (int destX, int destY, string text)
 Draws the specified string at the specified location.
abstract void DrawText (double destX, double destY, string text)
 Draws the specified string at the specified location.
abstract void DrawText (Point destPt, string text)
 Draws the specified string at the specified location.
abstract void DrawText (PointF destPt, string text)
 Draws the specified string at the specified location.
virtual void SetScale (double x, double y)
 Sets ScaleWidth and ScaleHeight.
virtual void GetScale (out double x, out double y)
 Gets ScaleWidth and ScaleHeight.
abstract void Dispose ()
 Disposes of unmanaged resources.

Properties

virtual int FontHeight [get]
 Gets the height of a single line of text.
virtual OriginAlignment DisplayAlignment [get, set]
 Sets how to interpret the point given to DrawText methods.
virtual Color Color [get, set]
 Sets the color of the text to be drawn.
virtual double Alpha [get, set]
 Sets the alpha value of the text to be drawn.
double ScaleWidth [get, set]
 Gets or sets the amount the width is scaled when the text is drawn. 1.0 is no scaling.
double ScaleHeight [get, set]
 Gets or sets the amount the height is scaled when the text is drawn. 1.0 is no scaling.


Detailed Description

Implements a FontSurface.


Member Function Documentation

abstract void AgateLib.ImplementationBase.FontSurfaceImpl.Dispose (  )  [pure virtual]

Disposes of unmanaged resources.

Implemented in AgateLib.BitmapFont.BitmapFontImpl.

abstract void AgateLib.ImplementationBase.FontSurfaceImpl.DrawText ( PointF  destPt,
string  text 
) [pure virtual]

Draws the specified string at the specified location.

Parameters:
destPt 
text 

Implemented in AgateLib.BitmapFont.BitmapFontImpl.

abstract void AgateLib.ImplementationBase.FontSurfaceImpl.DrawText ( Point  destPt,
string  text 
) [pure virtual]

Draws the specified string at the specified location.

Parameters:
destPt 
text 

Implemented in AgateLib.BitmapFont.BitmapFontImpl.

abstract void AgateLib.ImplementationBase.FontSurfaceImpl.DrawText ( double  destX,
double  destY,
string  text 
) [pure virtual]

Draws the specified string at the specified location.

Parameters:
destX 
destY 
text 

Implemented in AgateLib.BitmapFont.BitmapFontImpl.

abstract void AgateLib.ImplementationBase.FontSurfaceImpl.DrawText ( int  destX,
int  destY,
string  text 
) [pure virtual]

Draws the specified string at the specified location.

Parameters:
destX 
destY 
text 

Implemented in AgateLib.BitmapFont.BitmapFontImpl.

virtual void AgateLib.ImplementationBase.FontSurfaceImpl.GetScale ( out double  x,
out double  y 
) [virtual]

Gets ScaleWidth and ScaleHeight.

Parameters:
x 
y 

virtual void AgateLib.ImplementationBase.FontSurfaceImpl.SetScale ( double  x,
double  y 
) [virtual]

Sets ScaleWidth and ScaleHeight.

Parameters:
x 
y 

abstract int AgateLib.ImplementationBase.FontSurfaceImpl.StringDisplayHeight ( string  text  )  [pure virtual]

Measures the height of the given string.

Parameters:
text 
Returns:

Implemented in AgateLib.BitmapFont.BitmapFontImpl.

abstract Size AgateLib.ImplementationBase.FontSurfaceImpl.StringDisplaySize ( string  text  )  [pure virtual]

Measures the size of the given string.

Parameters:
text 
Returns:

Implemented in AgateLib.BitmapFont.BitmapFontImpl.

abstract int AgateLib.ImplementationBase.FontSurfaceImpl.StringDisplayWidth ( string  text  )  [pure virtual]

Measures the width of the given string.

Parameters:
text 
Returns:

Implemented in AgateLib.BitmapFont.BitmapFontImpl.


Property Documentation

virtual double AgateLib.ImplementationBase.FontSurfaceImpl.Alpha [get, set]

Sets the alpha value of the text to be drawn.

virtual Color AgateLib.ImplementationBase.FontSurfaceImpl.Color [get, set]

Sets the color of the text to be drawn.

Reimplemented in AgateLib.BitmapFont.BitmapFontImpl.

virtual OriginAlignment AgateLib.ImplementationBase.FontSurfaceImpl.DisplayAlignment [get, set]

Sets how to interpret the point given to DrawText methods.

virtual int AgateLib.ImplementationBase.FontSurfaceImpl.FontHeight [get]

Gets the height of a single line of text.

Reimplemented in AgateLib.BitmapFont.BitmapFontImpl.

double AgateLib.ImplementationBase.FontSurfaceImpl.ScaleHeight [get, set]

Gets or sets the amount the height is scaled when the text is drawn. 1.0 is no scaling.

double AgateLib.ImplementationBase.FontSurfaceImpl.ScaleWidth [get, set]

Gets or sets the amount the width is scaled when the text is drawn. 1.0 is no scaling.


The documentation for this class was generated from the following file:
AgateLib
Awesome Game and Tool Engine Library
SourceForge.net Logo