Luna::OffsetRect
Used to specify a 2D rectangle region using offsets with its container rectangle.
template <typename _Ty>
struct Luna::OffsetRect
Parameters
-
_Ty
The type that represents values of the rectangle.
Member objects
-
The left offset of the rectangle from its container.
-
The top offset of the rectangle from its container.
-
The right offset of the rectangle from its container.
-
The bottom offset of the rectangle from its container.
Member functions
-
Constructs one rectangle. Values of the rectangle is uninitialized.
-
OffsetRect(_Ty left, _Ty top, _Ty right, _Ty bottom)
Constructs one rectangle.
-
bool operator==(const OffsetRect &rhs) const
Compares two rectangles for equality.
-
bool operator!=(const OffsetRect &rhs) const
Compares two rectangles for non-equality.