|
Ultralight C API 2.0.0
|
#include <AppCore/CAPI/CAPI_Layout.h>
Options for creating a panel.
Public Attributes | |
| uint32_t | struct_size |
| Must be sizeof(ULPanelDesc). | |
| const char * | key |
| Optional identity for lookup (ulContainerFind()) and diagnostics, as null-terminated UTF-8 (copied). | |
| ULLayoutSize | size |
| The panel's size along its container's axis. | |
| ULLayoutSize | min_size |
| Minimum size constraint. | |
| ULLayoutSize | max_size |
| Maximum size constraint. | |
| uint32_t | flags |
| A ULLayoutFlags combination: Fixed, Hidden. | |
| uint32_t flags |
A ULLayoutFlags combination: Fixed, Hidden.
| const char* key |
Optional identity for lookup (ulContainerFind()) and diagnostics, as null-terminated UTF-8 (copied).
NULL means unkeyed, and unkeyed panels are fully supported. Duplicate keys log a warning, and lookup returns the most recently created match.
| ULLayoutSize max_size |
Maximum size constraint.
A percent value is relative to the container's content box. Unset means no maximum.
| ULLayoutSize min_size |
Minimum size constraint.
A percent value is relative to the container's content box. Unset means no minimum.
| ULLayoutSize size |
The panel's size along its container's axis.
Unset means one flex share (1fr). A percent value is relative to the container's free space (after gaps and pixel sizes).
| uint32_t struct_size |
Must be sizeof(ULPanelDesc).