1 #ifndef RAYLIB_CPP_RECTANGLE_HPP_ 2 #define RAYLIB_CPP_RECTANGLE_HPP_ 13 #include "Vector2.hpp" 21 Rectangle(
float X = 0,
float Y = 0,
float Width = 0,
float Height = 0) {
35 GETTERSETTER(
float,X,x)
36 GETTERSETTER(
float,Y,y)
37 GETTERSETTER(
float,Width,width)
38 GETTERSETTER(
float,Height,height)
51 ::DrawRectangle(static_cast<int>(x), static_cast<int>(y), static_cast<int>(width), static_cast<int>(height), color);
55 ::DrawRectanglePro(*
this, origin, rotation, color);
60 ::DrawRectangleGradientH(static_cast<int>(x), static_cast<int>(y), static_cast<int>(width), static_cast<int>(height), color1, color2);
64 ::DrawRectangleGradientH(static_cast<int>(x), static_cast<int>(y), static_cast<int>(width), static_cast<int>(height), color1, color2);
68 ::DrawRectangleGradientEx(*
this, col1, col2, col3, col4);
72 ::DrawRectangleLines(static_cast<int>(x), static_cast<int>(y), static_cast<int>(width), static_cast<int>(height), color);
76 ::DrawRectangleLinesEx(*
this, lineThick, color);
80 ::DrawRectangleRounded(*
this, roundness, segments, color);
84 ::DrawRectangleRoundedLines(*
this, roundness, segments, lineThick, color);
89 return ::CheckCollisionRecs(*
this, rec2);
92 return ::GetCollisionRec(*
this, rec2);
95 return ::CheckCollisionPointRec(point, *
this);
Rectangle & Draw(::Vector2 origin, float rotation, ::Color color)
Rectangle & operator=(const Rectangle &rect)
Rectangle & DrawGradientV(::Color color1, ::Color color2)
bool CheckCollision(::Vector2 point)
Rectangle(::Rectangle vec)
bool CheckCollision(::Rectangle rec2)
Rectangle & DrawGradient(::Color col1, ::Color col2, ::Color col3, ::Color col4)
Rectangle(float X=0, float Y=0, float Width=0, float Height=0)
Rectangle & DrawLines(::Color color)
Rectangle & DrawRounded(float roundness, int segments, ::Color color)
Rectangle GetCollision(::Rectangle rec2)
Rectangle & DrawRoundedLines(float roundness, int segments, int lineThick, ::Color color)
Provides all the classes associated with raylib-cpp.
Rectangle & Draw(::Color color)
Rectangle & DrawGradientH(::Color color1, ::Color color2)
Rectangle & DrawLinesEx(int lineThick, ::Color color)