|
| | Rectangle () noexcept |
| |
| | Rectangle (const T &x, const T &y, const T &width, const T &height) noexcept |
| |
| | Rectangle (const T &x, const T &y, const Size< T > &size) noexcept |
| |
| | Rectangle (const Point< T > &pos, const T &width, const T &height) noexcept |
| |
| | Rectangle (const Point< T > &pos, const Size< T > &size) noexcept |
| |
| | Rectangle (const Rectangle< T > &rect) noexcept |
| |
| const T & | getX () const noexcept |
| |
| const T & | getY () const noexcept |
| |
| const T & | getWidth () const noexcept |
| |
| const T & | getHeight () const noexcept |
| |
| const Point< T > & | getPos () const noexcept |
| |
| const Size< T > & | getSize () const noexcept |
| |
| void | setX (const T &x) noexcept |
| |
| void | setY (const T &y) noexcept |
| |
| void | setPos (const T &x, const T &y) noexcept |
| |
| void | setPos (const Point< T > &pos) noexcept |
| |
| void | moveBy (const T &x, const T &y) noexcept |
| |
| void | moveBy (const Point< T > &pos) noexcept |
| |
| void | setWidth (const T &width) noexcept |
| |
| void | setHeight (const T &height) noexcept |
| |
| void | setSize (const T &width, const T &height) noexcept |
| |
| void | setSize (const Size< T > &size) noexcept |
| |
| void | growBy (double multiplier) noexcept |
| |
| void | shrinkBy (double divider) noexcept |
| |
| void | setRectangle (const Point< T > &pos, const Size< T > &size) noexcept |
| |
| void | setRectangle (const Rectangle< T > &rect) noexcept |
| |
| bool | contains (const T &x, const T &y) const noexcept |
| |
| bool | contains (const Point< T > &pos) const noexcept |
| |
| bool | containsX (const T &x) const noexcept |
| |
| bool | containsY (const T &y) const noexcept |
| |
| void | draw () |
| |
| void | drawOutline () |
| |
|
Rectangle< T > & | operator= (const Rectangle< T > &rect) noexcept |
| |
|
Rectangle< T > & | operator*= (double m) noexcept |
| |
|
Rectangle< T > & | operator/= (double d) noexcept |
| |
|
bool | operator== (const Rectangle< T > &size) const noexcept |
| |
|
bool | operator!= (const Rectangle< T > &size) const noexcept |
| |
template<typename T>
class Rectangle< T >
DGL Rectangle class.
This class describes a rectangle, defined by a starting point and a size.