16#ifndef AEONGUI_DOMRECT_HPP
17#define AEONGUI_DOMRECT_HPP
20#include "aeongui/dom/DOMRectReadOnly.hpp"
54 float x (
float newX );
56 float y (
float newY );
58 float width (
float newWidth );
60 float height (
float newHeight );
62 float top (
float newTop );
64 float right (
float newRight );
66 float bottom (
float newBottom );
68 float left (
float newLeft );
78 return DOMRect ( rect.x(), rect.y(), rect.width(), rect.height() );
float x(float newX)
Set the X coordinate.
Definition DOMRect.cpp:28
static DOMRect fromRect(const T &rect)
Create a DOMRect from any rect-like object.
Definition DOMRect.hpp:76
float height(float newHeight)
Set the height.
Definition DOMRect.cpp:46
DOMRect(float x=0.0f, float y=0.0f, float width=0.0f, float height=0.0f)
Construct a rectangle.
Definition DOMRect.cpp:22
float y(float newY)
Set the Y coordinate.
Definition DOMRect.cpp:34
float top(float newTop)
Set the top edge.
Definition DOMRect.cpp:52
virtual ~DOMRect() final
Destructor.
float left(float newLeft)
Set the left edge.
Definition DOMRect.cpp:70
float right(float newRight)
Set the right edge.
Definition DOMRect.cpp:58
float bottom(float newBottom)
Set the bottom edge.
Definition DOMRect.cpp:64
float width(float newWidth)
Set the width.
Definition DOMRect.cpp:40
DOMRectReadOnly(float x=0.0f, float y=0.0f, float width=0.0f, float height=0.0f)
Construct a rectangle.
Definition DOMRectReadOnly.cpp:23