ERY.AgateLib.Geometry.Size Struct Reference

Replacement for System.Drawing.Size object. More...

List of all members.

Public Member Functions

 Size (Point pt)
 Constructs a Size.
 Size (int width, int height)
 Constructs a Size.
 Size (System.Drawing.Size size)
 Constructs a Size.
override string ToString ()
 Converts to a string.
override int GetHashCode ()
 Gets a hash code.
override bool Equals (object obj)
 Equality test.
bool Equals (Size obj)
 Equality test.

Static Public Member Functions

static bool operator== (Size a, Size b)
 Equality comparison test.
static bool operator!= (Size a, Size b)
 Inequality comparison test.
static Size Ceiling (SizeF a)
 Rounds the SizeF structure up.
static operator System.Drawing.Size (Size size)
 Explicit conversion for System.Drawing interop.

Public Attributes

int width
int height

Static Public Attributes

static readonly Size Empty = new Size(0, 0)
 Empty Size.

Properties

int Width [get, set]
 Gets or sets the width.
int Height [get, set]
 Gets or sets the height.
bool IsEmpty [get]
 Returns true if width and height are zero.


Detailed Description

Replacement for System.Drawing.Size object.


Constructor & Destructor Documentation

ERY.AgateLib.Geometry.Size.Size ( Point  pt  ) 

Constructs a Size.

Parameters:
pt 

ERY.AgateLib.Geometry.Size.Size ( int  width,
int  height 
)

Constructs a Size.

Parameters:
width 
height 

ERY.AgateLib.Geometry.Size.Size ( System.Drawing.Size  size  ) 

Constructs a Size.

[Experimental - The API is likely to change in the future.]

Parameters:
size 


Member Function Documentation

static bool ERY.AgateLib.Geometry.Size.operator== ( Size  a,
Size  b 
) [static]

Equality comparison test.

Parameters:
a 
b 
Returns:

static bool ERY.AgateLib.Geometry.Size.operator!= ( Size  a,
Size  b 
) [static]

Inequality comparison test.

Parameters:
a 
b 
Returns:

override string ERY.AgateLib.Geometry.Size.ToString (  ) 

Converts to a string.

Returns:

override int ERY.AgateLib.Geometry.Size.GetHashCode (  ) 

Gets a hash code.

Returns:

override bool ERY.AgateLib.Geometry.Size.Equals ( object  obj  ) 

Equality test.

Parameters:
obj 
Returns:

bool ERY.AgateLib.Geometry.Size.Equals ( Size  obj  ) 

Equality test.

Parameters:
obj 
Returns:

static Size ERY.AgateLib.Geometry.Size.Ceiling ( SizeF  a  )  [static]

Rounds the SizeF structure up.

Parameters:
a 
Returns:

static ERY.AgateLib.Geometry.Size.operator System.Drawing.Size ( Size  size  )  [explicit, static]

Explicit conversion for System.Drawing interop.

Parameters:
size 
Returns:


Member Data Documentation

int ERY.AgateLib.Geometry.Size.width

int ERY.AgateLib.Geometry.Size.height

readonly Size ERY.AgateLib.Geometry.Size.Empty = new Size(0, 0) [static]

Empty Size.


Property Documentation

int ERY.AgateLib.Geometry.Size.Width [get, set]

Gets or sets the width.

int ERY.AgateLib.Geometry.Size.Height [get, set]

Gets or sets the height.

bool ERY.AgateLib.Geometry.Size.IsEmpty [get]

Returns true if width and height are zero.


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