#include <gfx_basictypes.h>
Definition of a rectangle used for window/draw operations.
Public Member Functions | |
| DrawRect (Vec2< T, 1 > positionValue, DrawDimension< T > sizeValue) | |
| DrawRect (T x, T y, T w, T h) | |
| MAXON_IMPLICIT | DrawRect (const Range< Vec2< T, 1 >> &src) |
| DrawRect () | |
| const Vec2< T, 1 > & | GetOriginPoint () const |
| T | GetEndX () const |
| T | GetEndY () const |
| Vec2< T, 1 > | GetEndPoint () const |
| T | GetLeftEdge () const |
| T | GetTopEdge () const |
| T | GetRightEdge () const |
| T | GetBottomEdge () const |
| Vec2< T, 1 > | GetTopLeftPoint () const |
| Vec2< T, 1 > | GetBottomRigthPoint () const |
| T | GetWidth () const |
| T | GetWidthAbs () const |
| void | SetWidth (T width) |
| T | GetHeight () const |
| T | GetHeightAbs () const |
| void | SetHeight (T height) |
| Bool | Contains (const Vec2< T, 1 > &point) const |
| Bool | Intersects (const DrawRect &rect) const |
| String | ToString (const FormatStatement *formatStatement=nullptr) const |
| MAXON_OPERATOR_EQUALITY_HASHCODE (DrawRect, position, size) | |
Static Public Member Functions | |
| static Result< void > | DescribeIO (const DataSerializeInterface &stream) |
Public Attributes | |
| Vec2< T, 1 > | position |
| DrawDimension< T > | size |
| DrawRect | ( | Vec2< T, 1 > | positionValue, |
| DrawDimension< T > | sizeValue | ||
| ) |
| DrawRect | ( | T | x, |
| T | y, | ||
| T | w, | ||
| T | h | ||
| ) |
| MAXON_IMPLICIT DrawRect | ( | const Range< Vec2< T, 1 >> & | src | ) |
| DrawRect | ( | ) |
| const Vec2<T, 1>& GetOriginPoint | ( | ) | const |
| T GetEndX | ( | ) | const |
| T GetEndY | ( | ) | const |
| Vec2<T, 1> GetEndPoint | ( | ) | const |
| T GetLeftEdge | ( | ) | const |
| T GetTopEdge | ( | ) | const |
| T GetRightEdge | ( | ) | const |
| T GetBottomEdge | ( | ) | const |
| Vec2<T, 1> GetTopLeftPoint | ( | ) | const |
| Vec2<T, 1> GetBottomRigthPoint | ( | ) | const |
| T GetWidth | ( | ) | const |
| T GetWidthAbs | ( | ) | const |
| void SetWidth | ( | T | width | ) |
| T GetHeight | ( | ) | const |
| T GetHeightAbs | ( | ) | const |
| void SetHeight | ( | T | height | ) |
| String ToString | ( | const FormatStatement * | formatStatement = nullptr | ) | const |
Returns a readable string of the content.
| [in] | formatStatement | Nullptr or additional formatting instruction. Currently no additional formatting instructions are supported. |
|
static |
Describe all elements of this class for I/O operations.
| [in] | stream | The stream that is used to register the class members. |
| Vec2<T, 1> position |
| DrawDimension<T> size |