16#ifndef AEONGUI_DOMRECTREADONLY_HPP
17#define AEONGUI_DOMRECTREADONLY_HPP
20#include "DOMString.hpp"
77 return DOMRectReadOnly ( rect.x(), rect.y(), rect.width(), rect.height() );
83 DOMString toJSON()
const;
float y() const
Get the Y coordinate.
Definition DOMRectReadOnly.cpp:32
float mHeight
Rectangle height.
Definition DOMRectReadOnly.hpp:89
static DOMRectReadOnly fromRect(const T &rect)
Create a DOMRectReadOnly from any rect-like object.
Definition DOMRectReadOnly.hpp:75
float x() const
Get the X coordinate.
Definition DOMRectReadOnly.cpp:28
float mX
X coordinate.
Definition DOMRectReadOnly.hpp:86
float mY
Y coordinate.
Definition DOMRectReadOnly.hpp:87
float left() const
Get the left edge (min of x and x+width).
Definition DOMRectReadOnly.cpp:56
DOMRectReadOnly(float x=0.0f, float y=0.0f, float width=0.0f, float height=0.0f)
Construct a rectangle.
Definition DOMRectReadOnly.cpp:23
float top() const
Get the top edge (min of y and y+height).
Definition DOMRectReadOnly.cpp:44
float width() const
Get the width.
Definition DOMRectReadOnly.cpp:36
float right() const
Get the right edge (max of x and x+width).
Definition DOMRectReadOnly.cpp:48
float height() const
Get the height.
Definition DOMRectReadOnly.cpp:40
float bottom() const
Get the bottom edge (max of y and y+height).
Definition DOMRectReadOnly.cpp:52
virtual ~DOMRectReadOnly()
Destructor.
float mWidth
Rectangle width.
Definition DOMRectReadOnly.hpp:88