Declared in elStructs.h
Describes a three-dimensional size with width, height, and depth elements.
Width - horizontal size element (typically in pixels).
Height - vertical size element (typically in pixels).
Depth - orthogonal, "into the screen" size element (reserved for future use).
|MSize()||Default constructor. Sets data members (elements) to their default values.|
|MSize(aw,ah,ad)||Init constructor. Sets data members to their initial values.|
|operator!=(s1,s2)||Logical opposite of operator==.|
|operator*(s,c)||Multiplies a valid MSize value by scalar with overflow checking.|
|operator*(c,s)||Multiplies a scalar by a valid MSize value with overflow checking.|
|operator+(s1,s2)||Adds two valid MSize values with overflow checking.|
|operator-(s1,s2)||Subtracts two valid MSize values with underflow checking.|
|operator/(s,c)||Divides a valid MSize value by a non-zero scalar.|
|operator<<(s1,s2)||Validates s1 using s2 and returns the result.|
|operator<<(str,s)||Appends s to str in a "w,h,d" form.|
|operator<<=(s1,s2)||Validates s1 using values in s2.|
|operator==(s1,s2)||Returns true iff s1 and s2 are equal.|
MSize defines a 3D size type, suitable for measuring windows or other box-like 2D or 3D shapes. The measuring units depend on the context, but most often they are measured in pixels.
Unlike MLocus, MSize is not an ordered type (cannot be sorted), but it does support typical vector operations: addition, subtraction, and multiplication/division by scalar.
- The third dimension is not used yet. It is needed for the future support of 3D graphics and 3D windows
Let us know
Please Contact us to report any errors on this page, or to suggest any improvements.