Gama C Library
Gama C API Documentation
Loading...
Searching...
No Matches
frame.h File Reference
#include "../collision.h"
#include "../draw.h"

Go to the source code of this file.

Data Structures

struct  gmwFrameTheme
 Structure defining the visual theme for a frame widget. More...

Functions

int gmw_frame (double x, double y, double width, double height)
 Creates and renders a frame widget (a bordered panel).

Variables

gmwFrameTheme gmwFrame
 Global frame theme instance with default values.

Function Documentation

◆ gmw_frame()

int gmw_frame ( double x,
double y,
double width,
double height )

Creates and renders a frame widget (a bordered panel).

Parameters
xThe x-coordinate of the frame's center.
yThe y-coordinate of the frame's center.
widthThe width of the frame.
heightThe height of the frame.
Returns
1 if the frame is currently hovered, 0 otherwise.
Examples
/home/engon/gama/gama/lib/gama.h.

Variable Documentation

◆ gmwFrame

gmwFrameTheme gmwFrame
Initial value:
= {.enabled = 1,
.background = 0x2A1E2AE0,
.border = 0xAA77AAAF,
.scale = 1.0,
.focussed =
{
.background = 0x3A2A3AE8,
.border = 0xBA87BAAF,
.scale = 1.01,
},
.inactive =
{
.background = 0x201820C8,
.border = 0x6F4F6FAF,
.scale = 1.0,
},
.border_width = 0.015}

Global frame theme instance with default values.