rolmodl
C++ API for the Simple Directmedia Library 2 (SDL2)
|
Rectangle represented by its top left corner coordinates, width, and height. More...
#include <Geom.hpp>
Public Member Functions | |
constexpr | RectWH (const int argX, const int argY, const int argW, const int argH) noexcept |
Initialize with the given top left corner x and y, width, and height. More... | |
constexpr | RectWH (const SDL_Rect r) noexcept |
Initialize from the given SDL_Rect . | |
constexpr RectXY | xy () const noexcept |
Convert to an equivalent rolmodl::geom::RectXY. | |
constexpr SDL_Rect | sdl () const noexcept |
Convert to an SDL_Rect . | |
Public Attributes | |
int | x |
int | y |
int | w |
int | h |
Rectangle represented by its top left corner coordinates, width, and height.
|
inlineconstexprnoexcept |
Initialize with the given top left corner x and y, width, and height.
int
s with rolmodl::geom::Pos and rolmodl::geom::Size? It's less convenient to initialize.