AgateLib.DisplayLib.Origin Class Reference

Static class which performs necessary calculates based on OriginAlignment values. More...

List of all members.

Static Public Member Functions

static Point Calc (OriginAlignment origin, Size size)
 Returns a point which should be subtracted from the interpreted point to get the top-left position.
static PointF CalcF (OriginAlignment origin, Size size)
 Returns a point which should be subtracted from the interpreted point to get the top-left position.
static PointF CalcF (OriginAlignment origin, SizeF size)
 Returns a point which should be subtracted from the interpreted point to get the top-left position.
static void Calc (OriginAlignment origin, Size size, out int x, out int y)
 Returns a point which should be subtracted from the interpreted point to get the top-left position.
static Rectangle CalcRect (OriginAlignment origin, Rectangle rect)
 Modifies the rectangle by taking its Location and converting it using Calc so that the rectangle outlines the actual destination.
static Rectangle CalcRect (OriginAlignment origin, Rectangle rect, Size effectiveSize)
 Modifies the rectangle by taking its Location and converting it using Calc so that the rectangle outlines the actual destination.


Detailed Description

Static class which performs necessary calculates based on OriginAlignment values.


Member Function Documentation

static void AgateLib.DisplayLib.Origin.Calc ( OriginAlignment  origin,
Size  size,
out int  x,
out int  y 
) [static]

Returns a point which should be subtracted from the interpreted point to get the top-left position.

Parameters:
origin 
size 
x 
y 

static Point AgateLib.DisplayLib.Origin.Calc ( OriginAlignment  origin,
Size  size 
) [static]

Returns a point which should be subtracted from the interpreted point to get the top-left position.

Parameters:
origin 
size 
Returns:

static PointF AgateLib.DisplayLib.Origin.CalcF ( OriginAlignment  origin,
SizeF  size 
) [static]

Returns a point which should be subtracted from the interpreted point to get the top-left position.

Parameters:
origin 
size 
Returns:

static PointF AgateLib.DisplayLib.Origin.CalcF ( OriginAlignment  origin,
Size  size 
) [static]

Returns a point which should be subtracted from the interpreted point to get the top-left position.

Parameters:
origin 
size 
Returns:

static Rectangle AgateLib.DisplayLib.Origin.CalcRect ( OriginAlignment  origin,
Rectangle  rect,
Size  effectiveSize 
) [static]

Modifies the rectangle by taking its Location and converting it using Calc so that the rectangle outlines the actual destination.

Parameters:
origin 
rect 
effectiveSize 
Returns:

static Rectangle AgateLib.DisplayLib.Origin.CalcRect ( OriginAlignment  origin,
Rectangle  rect 
) [static]

Modifies the rectangle by taking its Location and converting it using Calc so that the rectangle outlines the actual destination.

Parameters:
origin 
rect 
Returns:


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