|
Ultralight C API 2.0.0
|
#include <AppCore/CAPI/CAPI_Layout.h>
Options for creating a container (a row or column of child nodes).
Public Attributes | |
| uint32_t | struct_size |
| Must be sizeof(ULContainerDesc). | |
| const char * | key |
| Optional identity for lookup and diagnostics (see ULPanelDesc.key). | |
| ULLayoutSize | size |
| The container's size along its parent's axis. Unset means one flex share (1fr). | |
| ULLayoutSize | min_size |
| Minimum size constraint (see ULPanelDesc.min_size). | |
| ULLayoutSize | max_size |
| Maximum size constraint (see ULPanelDesc.max_size). | |
| uint32_t | flags |
| A ULLayoutFlags combination: Fixed, Resizable, Hidden. | |
| ULLayoutSize | gap |
| The gap between adjacent children (logical px only, other units are ignored with a warning). | |
| ULLayoutSize | padding |
| Padding between the container's edges and its children, applied on all four sides (logical px only). | |
| uint32_t flags |
A ULLayoutFlags combination: Fixed, Resizable, Hidden.
| ULLayoutSize gap |
The gap between adjacent children (logical px only, other units are ignored with a warning).
Unset means no gap.
| const char* key |
Optional identity for lookup and diagnostics (see ULPanelDesc.key).
| ULLayoutSize max_size |
Maximum size constraint (see ULPanelDesc.max_size).
| ULLayoutSize min_size |
Minimum size constraint (see ULPanelDesc.min_size).
| ULLayoutSize padding |
Padding between the container's edges and its children, applied on all four sides (logical px only).
Unset means no padding.
| ULLayoutSize size |
The container's size along its parent's axis. Unset means one flex share (1fr).
| uint32_t struct_size |
Must be sizeof(ULContainerDesc).