#include "../collision.h"
#include "../draw.h"
Go to the source code of this file.
|
| int | gmw_frame (double x, double y, double width, double height) |
| | Creates and renders a frame widget (a bordered panel).
|
◆ gmw_frame()
| int gmw_frame |
( |
double | x, |
|
|
double | y, |
|
|
double | width, |
|
|
double | height ) |
Creates and renders a frame widget (a bordered panel).
- Parameters
-
| x | The x-coordinate of the frame's center. |
| y | The y-coordinate of the frame's center. |
| width | The width of the frame. |
| height | The height of the frame. |
- Returns
- 1 if the frame is currently hovered, 0 otherwise.
- Examples
- /home/engon/gama/gama/lib/gama.h.
◆ 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.