libGumball 0.0.1
C23-Based, libGimbal-powered UI Library
Loading...
Searching...
No Matches
gumball_rectangle.h
Go to the documentation of this file.
1#ifndef GUM_RECTANGLE_H
2#define GUM_RECTANGLE_H
3
4// View this file's documentation online: https://libgumball.psyops.studio/gumball__rectangle_8h.html
5
6/*! \file
7 * \ingroup types
8 *
9 * GUM_Rectangle is a simple rectangle structure
10 *
11 * \author 2025 Agustín Bellagamba
12 * \copyright MIT License
13*/
14
15#include <gimbal/gimbal_meta.h>
16
17GBL_DECLS_BEGIN
18
19/*! \struct GUM_Rectangle
20 * \brief GUM_Rectangle structure
21*/
22typedef struct {
23 float x;
24 float y;
25 float width;
26 float height;
27} GUM_Rectangle;
28
29#define GUM_RECTANGLE_TYPE (GBL_TYPEID(GUM_Rectangle)) //!< Returns the GUM_Rectangle Type UUID
30
31//! \cond
32GblType GUM_Rectangle_type(void);
33//! \endcond
34
35GBL_DECLS_END
36
37#endif // GUM_RECTANGLE_H