Implement UIs using RmlUi
This commit is contained in:
parent
8039b1276e
commit
7f37be386d
27 changed files with 1457 additions and 42 deletions
|
|
@ -1,6 +1,6 @@
|
|||
module;
|
||||
|
||||
#include <SDL3/SDL.h>
|
||||
#include <SDL3/SDL_rect.h>
|
||||
|
||||
export module wrappers.sdl.rect;
|
||||
|
||||
|
|
@ -11,12 +11,12 @@ export namespace sdl
|
|||
using Point = SDL_Point;
|
||||
|
||||
/**
|
||||
* Wrapper around SDL_FRect using class inheritance.
|
||||
* Wrapper for SDL_FRect using class inheritance.
|
||||
*/
|
||||
class FRect : public SDL_FRect
|
||||
{
|
||||
/**
|
||||
* Wrapper around SDL_RectEmptyFloat().
|
||||
* Wrapper for SDL_RectEmptyFloat().
|
||||
* @return True if the floating point rectangle takes no space.
|
||||
*/
|
||||
bool is_empty() const
|
||||
|
|
@ -26,12 +26,12 @@ export namespace sdl
|
|||
};
|
||||
|
||||
/**
|
||||
* Wrapper around SDL_Rect using class inheritance.
|
||||
* Wrapper for SDL_Rect using class inheritance.
|
||||
*/
|
||||
class Rect : public SDL_Rect
|
||||
{
|
||||
/**
|
||||
* Wrapper around SDL_RectEmpty().
|
||||
* Wrapper for SDL_RectEmpty().
|
||||
* @return True if the rectangle takes no space.
|
||||
*/
|
||||
bool is_empty() const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue