1 #ifndef DENGINE_ROUNDEDBOX_H 2 #define DENGINE_ROUNDEDBOX_H 3 #include "../UIComponent.h" 19 void Setup(SDL_Rect rect,
double width,
int cornerRadius);
31 #endif //DENGINE_ROUNDEDBOX_H int cornerR
Definition: RoundedBox.h:27
SDL_Rect boxRect
Definition: RoundedBox.h:26
A component of a UI window.
Definition: UIComponent.h:14
void Render() override
The render method of a component.
Definition: RoundedBox.cpp:9
A rectangle with rounded corners.
Definition: RoundedBox.h:11
void Setup(SDL_Rect rect, double width, int cornerRadius)
Initializes a rectangle with rounded corners.
Definition: RoundedBox.cpp:77
double borderWidth
Definition: RoundedBox.h:28
void Update() override
The update method of a component.
Definition: RoundedBox.cpp:7