AgateLib.Geometry.SizeF Struct Reference

SizeF structure. More...

List of all members.

Public Member Functions

 SizeF (PointF pt)
 Constructs a SizeF structure.
 SizeF (float width, float height)
 Constructs a SizeF structure.
override string ToString ()
 Converts to a string.
override int GetHashCode ()
 Gets a hash code.
override bool Equals (object obj)
 Equality test.
bool Equals (SizeF obj)
 Equality test.

Static Public Member Functions

static operator Size (SizeF size)
 Conversion to Size casts height and width to integers.
static bool operator== (SizeF a, SizeF b)
 Equality comparison test.
static bool operator!= (SizeF a, SizeF b)
 Inequality comparison test.

Public Attributes

float width
float height

Static Public Attributes

static readonly SizeF Empty = new SizeF(0, 0)
 Empty SizeF structure.

Properties

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


Detailed Description

SizeF structure.


Constructor & Destructor Documentation

AgateLib.Geometry.SizeF.SizeF ( PointF  pt  ) 

Constructs a SizeF structure.

Parameters:
pt 

AgateLib.Geometry.SizeF.SizeF ( float  width,
float  height 
)

Constructs a SizeF structure.

Parameters:
height 
width 


Member Function Documentation

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

Equality test.

Parameters:
obj 
Returns:

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

Equality test.

Parameters:
obj 
Returns:

override int AgateLib.Geometry.SizeF.GetHashCode (  ) 

Gets a hash code.

Returns:

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

Conversion to Size casts height and width to integers.

Parameters:
size 
Returns:

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

Inequality comparison test.

Parameters:
a 
b 
Returns:

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

Equality comparison test.

Parameters:
a 
b 
Returns:

override string AgateLib.Geometry.SizeF.ToString (  ) 

Converts to a string.

Returns:


Member Data Documentation

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

Empty SizeF structure.


Property Documentation

float AgateLib.Geometry.SizeF.Height [get, set]

Gets or sets the height.

bool AgateLib.Geometry.SizeF.IsEmpty [get]

True if width and height are zero.

float AgateLib.Geometry.SizeF.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