Size

Size
Scaleform::Render::Size
Declaration
template <class T>
class Size;
Description

Size represents a simple two-dimensional size consisting of two components: Width and Height. The coordinates are public and accessed directly; they can be set either directly or by calling the SetSize function.

Data Members
Data Member 
Description 
A value representing the height component of a two-dimensional size. 
A value representing the width component of a two-dimensional size. 
Enumerations
Enumeration 
Description 
An enumeration used by SetSize and Size constructors to initialize the size with the minimum (Min) or maximum (Max) size values. 
Methods
Method 
Description 
Area 
Determines the area of a size. 
Determines the center of the current size. 
Clamps the current size to alternate values. 
Clamps the current Height to an alternate value. 
Clamps the current Width to an alternate value. 
Clamps the current size to alternate values. 
Clamps the current Height to an alternate value. 
Clamps the current Width to an alternate value. 
Initializes Width and Height to zero. 
Contracts the current size by subtracting a fixed value from each of its components. 
Div 
Divides the current size by a fixed value. 
Expands a size by adding a fixed value to each of its components. 
Expands the current size to passed values (unions them). 
Expands (unions) the Height of the current size to a passed value. 
Expands (unions) the Width of the current size to a passed value. 
Determines the center of Width
Determines whether the size is empty. 
Determines whether the size is NULL. 
Mul 
Multiplies the current size by a fixed value. 
Size 
Initializes a new instance of a size. 
Sets the Height component of the current size. 
SetLerp set to a + (b - a) * t 
Sets the components of the current size. 
Sets the Width component of the current size. 
Swap 
Swaps the components of the current size with those of a passed size. 
Swaps the Width and Height components of the current size. 
Determines the center of Height
Topics
Topic 
Description 
Determines whether the size is valid. 
Operators
Operator 
Description 
*= 
Multiplies the components of the size by fixed value. 
/= 
Contracts a size by dividing each of its components by a fixed value. 
!= 
Determines the inequality of two sizes. 
&= 
Clamps a size to another size. 
|= 
Determines the union of two sizes. 
+= 
Expands a size by adding a fixed value to each of its components. 
-= 
Contracts a size by subtracting a fixed value from each of its components. 
= 
Assigns values to each component of a current size. 
== 
Determines the equality of two sizes. 
- 
Negates the components of a size. 
& 
Determines the intersection of two sizes. 
* 
Multiplies each of its components by a fixed value. 
/ 
Divides each size component by a fixed value. 
+ 
Expands a size by adding fixed values to its components. 
| 
Determines the union of two sizes. 
 
File

Render_Types2D.h