45 .background = 0x2A1E2AE0,
52 .background = 0x3A2A3AE8,
60 .background = 0x201820C8,
65 .border_width = 0.015};
80int gmw_frame(
double x,
double y,
double width,
double height) {
90 double sw = width * scale;
91 double sh = height * scale;
95 sh +
gmwFrame.border_width * 2, border);
Defines collision structures and provides functions for 2D collision detection.
int gm_mouse_in_rect(const double x, const double y, const double w, const double h)
Checks if the mouse cursor is currently within a given rectangular area.
Definition collision.h:172
uint32_t gmColor
Type definition for color values, stored as a 32-bit unsigned integer. The color components are packe...
Definition color.h:13
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 centered at a point.
Definition draw.h:57
gmwFrameTheme gmwFrame
Global frame theme instance with default values.
Definition frame.h:42
int gmw_frame(double x, double y, double width, double height)
Creates and renders a frame widget (a bordered panel).
Definition frame.h:80
Structure defining the visual theme for a frame widget.
Definition frame.h:17
double scale
Definition frame.h:22
int enabled
Definition frame.h:18
double border_width
Definition frame.h:36
gmColor background
Definition frame.h:20
gmColor border
Definition frame.h:21