|
| | Rectangle (const Vector2 &position, const Vector2 &dimensions, const Color &color=WHITE, float scale=1, float rotation=0) |
| | Rectangle constructor. More...
|
| |
| | Rectangle (int x, int y, int width, int height, const Color &color=WHITE) |
| | Rectangle constructor. More...
|
| |
| | Rectangle (const Rectangle &)=default |
| | A default copy constructor. More...
|
| |
| Rectangle & | operator= (const Rectangle &)=default |
| | A rectangle is assignable. More...
|
| |
| | ~Rectangle () override=default |
| | A default destructor. More...
|
| |
| const Vector2 & | getDimensions (void) |
| |
| float | getWidth (void) const |
| |
| float | getHeight (void) const |
| |
| Rectangle & | setDimensions (const Vector2 &dimensions) |
| | set dimensions More...
|
| |
| Rectangle & | incrementWidth (float width) |
| | increment width of the rectangle More...
|
| |
| Rectangle & | incrementHeight (float height) |
| | increment height of the rectangle More...
|
| |
| Rectangle & | setHeight (float height) |
| | set rectangle's height More...
|
| |
| Rectangle & | setWidth (float width) |
| | set rectangle's width More...
|
| |
| Rectangle & | setDimensions (float x, float y) |
| | set dimensions More...
|
| |
| virtual void | drawOn (RAY::Window &) override |
| | Draw point on window. More...
|
| |
| virtual void | drawOn (RAY::Image &image) override |
| | Draw point on image. More...
|
| |
| | ADrawable2D (const Vector2 &position, const RAY::Color &color, float scale=1, float rotation=0) |
| | ADrawable constructor. More...
|
| |
| | ADrawable2D (int x, int y, const RAY::Color &color, float scale=1, float rotation=0) |
| | ADrawable constructor. More...
|
| |
| | ADrawable2D (const ADrawable2D &)=default |
| | A default copy constructor. More...
|
| |
| | ~ADrawable2D () override=default |
| | A default destructor. More...
|
| |
| const RAY::Vector2 & | getPosition (void) const |
| |
| const RAY::Color & | getColor (void) const |
| |
| ADrawable2D & | setPosition (const Vector2 &position) |
| | set Top-left position More...
|
| |
| ADrawable2D & | setPosition (int x, int y) |
| | set Top-left position More...
|
| |
| ADrawable2D & | setColor (const Color &color) |
| | set color More...
|
| |
| float | getScale () const |
| | scale getter More...
|
| |
| void | setScale (float scale) |
| | scale setters More...
|
| |
| virtual | ~IDrawable ()=default |
| |
Rectangle in a two-dimensional space.