|
| Rectangle (::Vector2 position, ::Vector2 size) |
|
| Rectangle (::Vector2 size) |
|
| Rectangle (::Vector4 rect) |
|
| Rectangle (const ::Rectangle &rect) |
|
| 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.
|
|
bool | CheckCollision (::Vector2 center, float radius) const |
| Check collision between circle and rectangle.
|
|
bool | CheckCollision (::Vector2 point) const |
| Check if point is inside rectangle.
|
|
void | Draw (::Color color) const |
| Draw a color-filled rectangle.
|
|
void | Draw (::Vector2 origin, float rotation, ::Color color) const |
|
void | DrawGradient (::Color topLeft, ::Color bottomLeft, ::Color topRight, ::Color bottomRight) const |
|
void | DrawGradientH (::Color color1, ::Color color2) const |
|
void | DrawGradientV (::Color color1, ::Color color2) const |
|
void | DrawLines (::Color color) const |
|
void | DrawLines (::Color color, float lineThick) const |
|
void | DrawRounded (float roundness, int segments, ::Color color) const |
|
void | DrawRoundedLines (float roundness, int segments, ::Color color) const |
|
void | DrawRoundedLines (float roundness, int segments, float lineThick, ::Color color) const |
|
::Rectangle | GetCollision (::Rectangle rec2) const |
| Get collision rectangle for two rectangles collision.
|
|
float | GetHeight () const |
| Retrieves the height value for the object. More...
|
|
Vector2 | GetPosition () const |
|
Vector2 | GetSize () const |
|
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...
|
|
::Vector4 | ToVector4 () |
|
Rectangle type.
Definition at line 12 of file Rectangle.hpp.