ERY.AgateLib.ImplBase.FontSurfaceImpl Class Reference

Implements a FontSurface. More...

Inherited by ERY.AgateLib.ImplBase.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 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 int ERY.AgateLib.ImplBase.FontSurfaceImpl.StringDisplayWidth ( string  text  )  [pure virtual]

Measures the width of the given string.

Parameters:
text 
Returns:

Implemented in ERY.AgateLib.ImplBase.BitmapFontImpl.

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

Measures the height of the given string.

Parameters:
text 
Returns:

Implemented in ERY.AgateLib.ImplBase.BitmapFontImpl.

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

Measures the size of the given string.

Parameters:
text 
Returns:

Implemented in ERY.AgateLib.ImplBase.BitmapFontImpl.

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

Draws the specified string at the specified location.

Parameters:
destX 
destY 
text 

Implemented in ERY.AgateLib.ImplBase.BitmapFontImpl.

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

Draws the specified string at the specified location.

Parameters:
destX 
destY 
text 

Implemented in ERY.AgateLib.ImplBase.BitmapFontImpl.

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

Draws the specified string at the specified location.

Parameters:
destPt 
text 

Implemented in ERY.AgateLib.ImplBase.BitmapFontImpl.

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

Draws the specified string at the specified location.

Parameters:
destPt 
text 

Implemented in ERY.AgateLib.ImplBase.BitmapFontImpl.

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

Sets ScaleWidth and ScaleHeight.

Parameters:
x 
y 

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

Gets ScaleWidth and ScaleHeight.

Parameters:
x 
y 

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

Disposes of unmanaged resources.

Implemented in ERY.AgateLib.ImplBase.BitmapFontImpl.


Property Documentation

virtual OriginAlignment ERY.AgateLib.ImplBase.FontSurfaceImpl.DisplayAlignment [get, set]

Sets how to interpret the point given to DrawText methods.

virtual Color ERY.AgateLib.ImplBase.FontSurfaceImpl.Color [get, set]

Sets the color of the text to be drawn.

Reimplemented in ERY.AgateLib.ImplBase.BitmapFontImpl.

virtual double ERY.AgateLib.ImplBase.FontSurfaceImpl.Alpha [get, set]

Sets the alpha value of the text to be drawn.

double ERY.AgateLib.ImplBase.FontSurfaceImpl.ScaleWidth [get, set]

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

double ERY.AgateLib.ImplBase.FontSurfaceImpl.ScaleHeight [get, set]

Gets or sets the amount the height 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