|
libGumball 0.0.1
C23-Based, libGimbal-powered UI Library
|
Go to the source code of this file.
Macros | |
| #define | GUM_Container_create(...) |
Type System | |
Type UUID and cast operators | |
| #define | GUM_CONTAINER_TYPE |
| #define | GUM_CONTAINER(self) |
| #define | GUM_CONTAINER_CLASS(klass) |
| #define | GUM_CONTAINER_CLASSOF(self) |
Variables | |
Properties | |
Properties you can set/get at or after creation.
| |
| GUM_Widget char | orientation |
| bool | resizeWidgets |
| bool | alignWidgets |
| float | padding |
| float | margin |
GUM_Container data structure and hierarchy graph
GUM_Container is a container element that can hold other widgets. It can be used to group widgets together, and to optionally automatically resize / align them as needed.
| #define GUM_CONTAINER_TYPE |
Returns the GUM_Container Type UUID.
| #define GUM_CONTAINER | ( | self | ) |
Casts an instance of a compatible element to a GUM_Container.
| #define GUM_CONTAINER_CLASS | ( | klass | ) |
Casts an class of a compatible element to a GUM_ContainerClass.
| #define GUM_CONTAINER_CLASSOF | ( | self | ) |
Casts an instance of a compatible element to a GUM_Container.
| #define GUM_Container_create | ( | ... | ) |
Returns a new GUM_Container. Optionally takes in a list of Name/Value pairs for properties.
| GUM_Widget char orientation |
'h' for horizontal, 'v' for vertical layout of child widgets.
Default value is 'v'
| bool resizeWidgets |
If child widgets should be resized to take an equal amount of space.
Default value is true
| bool alignWidgets |
If child widgets should be aligned.
Default value is true
| float padding |
The space between the container's border and its child widgets.
Default value is 5
| float margin |
The space between child widgets.
Default value is 5