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.
static operator SizeF (Size size)
 Explicit conversion to SizeF structure.
static Size FromString (string text)

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

AgateLib.Geometry.Size.Size ( Point  pt  ) 

Constructs a Size.

Parameters:
pt 

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

Constructs a Size.

Parameters:
width 
height 

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 Size AgateLib.Geometry.Size.Ceiling ( SizeF  a  )  [static]

Rounds the SizeF structure up.

Parameters:
a 
Returns:

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

Equality test.

Parameters:
obj 
Returns:

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

Equality test.

Parameters:
obj 
Returns:

override int AgateLib.Geometry.Size.GetHashCode (  ) 

Gets a hash code.

Returns:

static AgateLib.Geometry.Size.operator SizeF ( Size  size  )  [explicit, static]

Explicit conversion to SizeF structure.

Parameters:
size 
Returns:

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

Explicit conversion for System.Drawing interop.

Parameters:
size 
Returns:

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

Inequality comparison test.

Parameters:
a 
b 
Returns:

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

Equality comparison test.

Parameters:
a 
b 
Returns:

override string AgateLib.Geometry.Size.ToString (  ) 

Converts to a string.

Returns:


Member Data Documentation

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

Empty Size.


Property Documentation

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

Gets or sets the height.

bool AgateLib.Geometry.Size.IsEmpty [get]

Returns true if width and height are zero.

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

Gets or sets the width.


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