|
raylib-cpp
C++ object-oriented wrapper library for raylib.
|
#include <Rectangle.hpp>
Public Member Functions | |
| Rectangle () | |
| Rectangle (::Vector2 position, ::Vector2 size) | |
| Rectangle (::Vector2 size) | |
| Rectangle (::Vector4 rect) | |
| Rectangle (const ::Rectangle &vec) | |
| Rectangle (float x) | |
| Rectangle (float x, float y) | |
| Rectangle (float x, float y, float width) | |
| Rectangle (float x, float y, float width, float height) | |
| bool | CheckCollision (::Rectangle rec2) const |
| Check collision between two rectangles. More... | |
| bool | CheckCollision (::Vector2 center, float radius) |
| Check collision between circle and rectangle. More... | |
| bool | CheckCollision (::Vector2 point) const |
| Check if point is inside rectangle. More... | |
| Rectangle & | Draw (::Color color) |
| Draw a color-filled rectangle. More... | |
| Rectangle & | Draw (::Vector2 origin, float rotation, ::Color color) |
| Rectangle & | DrawGradient (::Color col1, ::Color col2, ::Color col3, ::Color col4) |
| Rectangle & | DrawGradientH (::Color color1, ::Color color2) |
| Rectangle & | DrawGradientV (::Color color1, ::Color color2) |
| Rectangle & | DrawLines (::Color color) |
| Rectangle & | DrawLines (::Color color, float lineThick) |
| Rectangle & | DrawRounded (float roundness, int segments, ::Color color) |
| Rectangle & | DrawRoundedLines (float roundness, int segments, float lineThick, ::Color color) |
| inline ::Rectangle | GetCollision (::Rectangle rec2) const |
| Get collision rectangle for two rectangles collision. More... | |
| float | GetHeight () const |
| Retrieves the height value for the object. More... | |
| inline ::Vector2 | GetPosition () |
| inline ::Vector2 | GetSize () |
| float | GetWidth () const |
| Retrieves the width value for the object. More... | |
| float | GetX () const |
| Retrieves the x value for the object. More... | |
| float | GetY () const |
| Retrieves the y value for the object. More... | |
| operator::Vector4 () const | |
| Rectangle & | operator= (const ::Rectangle &rect) |
| void | SetHeight (float value) |
| Sets the height value for the object. More... | |
| Rectangle & | SetPosition (const ::Vector2 &position) |
| Rectangle & | SetPosition (float newX, float newY) |
| Rectangle & | SetShapesTexture (const ::Texture2D &texture) |
| Rectangle & | SetSize (const ::Vector2 &size) |
| Rectangle & | SetSize (float newWidth, float newHeight) |
| void | SetWidth (float value) |
| Sets the width value for the object. More... | |
| void | SetX (float value) |
| Sets the x value for the object. More... | |
| void | SetY (float value) |
| Sets the y value for the object. More... | |
| inline ::Vector4 | ToVector4 () |
Rectangle type.
Definition at line 12 of file Rectangle.hpp.
|
inline |
Definition at line 14 of file Rectangle.hpp.
|
inline |
Definition at line 18 of file Rectangle.hpp.
|
inline |
Definition at line 19 of file Rectangle.hpp.
|
inline |
Definition at line 20 of file Rectangle.hpp.
|
inline |
Definition at line 21 of file Rectangle.hpp.
|
inline |
Definition at line 22 of file Rectangle.hpp.
|
inline |
Definition at line 24 of file Rectangle.hpp.
|
inline |
Definition at line 26 of file Rectangle.hpp.
|
inline |
Definition at line 27 of file Rectangle.hpp.
|
inline |
Check collision between two rectangles.
Definition at line 103 of file Rectangle.hpp.
|
inline |
Check collision between circle and rectangle.
Definition at line 124 of file Rectangle.hpp.
|
inline |
Check if point is inside rectangle.
Definition at line 117 of file Rectangle.hpp.
|
inline |
Draw a color-filled rectangle.
Definition at line 50 of file Rectangle.hpp.
|
inline |
Definition at line 56 of file Rectangle.hpp.
|
inline |
Definition at line 73 of file Rectangle.hpp.
|
inline |
Definition at line 67 of file Rectangle.hpp.
|
inline |
Definition at line 61 of file Rectangle.hpp.
|
inline |
Definition at line 78 of file Rectangle.hpp.
|
inline |
Definition at line 84 of file Rectangle.hpp.
|
inline |
Definition at line 89 of file Rectangle.hpp.
|
inline |
Definition at line 94 of file Rectangle.hpp.
|
inline |
Get collision rectangle for two rectangles collision.
Definition at line 110 of file Rectangle.hpp.
|
inline |
Retrieves the height value for the object.
Definition at line 32 of file Rectangle.hpp.
|
inline |
Definition at line 147 of file Rectangle.hpp.
|
inline |
Definition at line 128 of file Rectangle.hpp.
|
inline |
Retrieves the width value for the object.
Definition at line 31 of file Rectangle.hpp.
|
inline |
Retrieves the x value for the object.
Definition at line 29 of file Rectangle.hpp.
|
inline |
Retrieves the y value for the object.
Definition at line 30 of file Rectangle.hpp.
|
inline |
Definition at line 43 of file Rectangle.hpp.
|
inline |
Definition at line 34 of file Rectangle.hpp.
|
inline |
Sets the height value for the object.
| value | The value of which to set height to. |
Definition at line 32 of file Rectangle.hpp.
|
inline |
Definition at line 157 of file Rectangle.hpp.
References SetPosition().
|
inline |
Definition at line 151 of file Rectangle.hpp.
Referenced by SetPosition().
|
inline |
Definition at line 142 of file Rectangle.hpp.
References SetShapesTexture().
Referenced by SetShapesTexture().
|
inline |
Definition at line 138 of file Rectangle.hpp.
References SetSize().
|
inline |
Definition at line 132 of file Rectangle.hpp.
Referenced by SetSize().
|
inline |
Sets the width value for the object.
| value | The value of which to set width to. |
Definition at line 31 of file Rectangle.hpp.
|
inline |
Sets the x value for the object.
| value | The value of which to set x to. |
Definition at line 29 of file Rectangle.hpp.
|
inline |
Sets the y value for the object.
| value | The value of which to set y to. |
Definition at line 30 of file Rectangle.hpp.
|
inline |
Definition at line 39 of file Rectangle.hpp.