class Size
Describes a graphical object's size in height and width.
Global Functions
int Compare (const var, const var) | Compares two sizes by area. |
Constructors
Size () | Constructs an empty size where width and height are zero. |
Size (const int, const int) | Constructs a size from the given width and height. |
Size (const Size) | Copy-constructs a size from an existing one. |
Methods
AddSize (const Size) | Adds the given size to this size. |
int IsEqual (const Size) | Returns true if this size is equal to the given size. |
Resize (const int, const int) | Sets this instance to the given size. |
ResizeBy (const int, const int) | Resizes this instance by the given deltas. |
SubSize (const Size) | Subtracts the given size from this size. |
Properties
int Height () | Returns the height of this instance. |
Height (const int) | Sets the height of this instance. |
int Width () | Returns the width of this instance. |
Width (const int) | Sets the width of this instance. |
Reference
function int Compare (const var v1, const var v2) |
Compares two sizes by area. This can be used as a comparator delegate for the array::sort() and list::sort() functions. |
method Size () |
Constructs an empty size where width and height are zero. |
method Size (const int width, const int height) |
Constructs a size from the given width and height. |
method Size (const Size src) |
Copy-constructs a size from an existing one. |
method AddSize (const Size src) |
Adds the given size to this size. |
method int IsEqual (const Size src) |
Returns true if this size is equal to the given size. |
method Resize (const int width, const int height) |
Sets this instance to the given size. |
method ResizeBy (const int dw, const int dh) |
Resizes this instance by the given deltas. |
method SubSize (const Size src) |
Subtracts the given size from this size. |
accessor int Height () |
Returns the height of this instance. |
accessor Height (const int) |
Sets the height of this instance. |
accessor int Width () |
Returns the width of this instance. |
accessor Width (const int) |
Sets the width of this instance. |