37 .background = 0x2A1E2AE0,
44 .background = 0x3A2A3AE8,
52 .background = 0x201820C8,
57 .border_width = 0.015};
67int gmw_frame(
double x,
double y,
double width,
double height) {
77 double sw = width * scale;
78 double sh = height * scale;
82 sh +
gmwFrame.border_width * 2, border);
int gm_mouse_in_rect(const double x, const double y, const double w, const double h)
Definition collision.h:102
unsigned int gmColor
Type definition for color values in RGBA format.
Definition color.h:8
Functions for drawing shapes, text, and images.
int32_t gm_draw_rectangle(double x, double y, double w, double h, gmColor c)
Draws a rectangle.
Definition draw.h:47
gmwFrameTheme gmwFrame
Global frame theme instance with default values.
Definition frame.h:34
int gmw_frame(double x, double y, double width, double height)
Creates and renders a frame widget (a bordered panel).
Definition frame.h:67
Structure defining the visual theme for a frame widget.
Definition frame.h:9
double scale
Definition frame.h:14
int enabled
Definition frame.h:10
double border_width
Definition frame.h:28
gmColor background
Definition frame.h:12
gmColor border
Definition frame.h:13