![]() |
raylib-cpp
C++ object-oriented wrapper library for raylib.
|
Public Member Functions | |
| Rectangle () | |
| Rectangle (::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 & | DrawLinesEx (int lineThick, ::Color color) |
| Rectangle & | DrawRounded (float roundness, int segments, ::Color color) |
| Rectangle & | DrawRoundedLines (float roundness, int segments, int lineThick, ::Color color) |
| inline ::Rectangle | GetCollision (::Rectangle rec2) const |
| Get collision rectangle for two rectangles collision. More... | |
| float | GetHeight () const |
| float | GetWidth () const |
| float | GetX () const |
| float | GetY () const |
| Rectangle & | operator= (const ::Rectangle &rect) |
| Rectangle & | operator= (const Rectangle &rect) |
| void | SetHeight (float value) |
| void | SetWidth (float value) |
| void | SetX (float value) |
| void | SetY (float value) |
Protected Member Functions | |
| void | set (::Rectangle rect) |
Definition at line 33 of file Rectangle.hpp.
|
inline |
Definition at line 35 of file Rectangle.hpp.
References set().
|
inline |
Definition at line 39 of file Rectangle.hpp.
|
inline |
Definition at line 40 of file Rectangle.hpp.
|
inline |
Definition at line 41 of file Rectangle.hpp.
|
inline |
Definition at line 42 of file Rectangle.hpp.
|
inline |
Definition at line 43 of file Rectangle.hpp.
|
inline |
Check collision between two rectangles.
Definition at line 116 of file Rectangle.hpp.
|
inline |
Check collision between circle and rectangle.
Definition at line 137 of file Rectangle.hpp.
|
inline |
Check if point is inside rectangle.
Definition at line 130 of file Rectangle.hpp.
Draw a color-filled rectangle.
Definition at line 63 of file Rectangle.hpp.
Definition at line 69 of file Rectangle.hpp.
|
inline |
Definition at line 86 of file Rectangle.hpp.
Definition at line 80 of file Rectangle.hpp.
Definition at line 74 of file Rectangle.hpp.
Definition at line 91 of file Rectangle.hpp.
Definition at line 97 of file Rectangle.hpp.
Definition at line 102 of file Rectangle.hpp.
|
inline |
Definition at line 107 of file Rectangle.hpp.
Get collision rectangle for two rectangles collision.
Definition at line 123 of file Rectangle.hpp.
|
inline |
Definition at line 48 of file Rectangle.hpp.
|
inline |
Definition at line 47 of file Rectangle.hpp.
|
inline |
Definition at line 45 of file Rectangle.hpp.
|
inline |
Definition at line 46 of file Rectangle.hpp.
Definition at line 50 of file Rectangle.hpp.
References set().
Definition at line 55 of file Rectangle.hpp.
References set().
|
inlineprotected |
Definition at line 142 of file Rectangle.hpp.
Referenced by operator=(), and Rectangle().
|
inline |
Definition at line 48 of file Rectangle.hpp.
|
inline |
Definition at line 47 of file Rectangle.hpp.
|
inline |
Definition at line 45 of file Rectangle.hpp.
|
inline |
Definition at line 46 of file Rectangle.hpp.
1.8.17