docs
Loading...
Searching...
No Matches
ULPanelDesc

#include <AppCore/CAPI/CAPI_Layout.h>

Overview

Options for creating a panel.

See also
ulContainerAddPanel()

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.

Member Data Documentation

◆ flags

uint32_t flags

A ULLayoutFlags combination: Fixed, Hidden.

◆ key

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.

◆ max_size

ULLayoutSize max_size

Maximum size constraint.

A percent value is relative to the container's content box. Unset means no maximum.

◆ min_size

ULLayoutSize min_size

Minimum size constraint.

A percent value is relative to the container's content box. Unset means no minimum.

◆ 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).

◆ struct_size

uint32_t struct_size

Must be sizeof(ULPanelDesc).


The documentation for this struct was generated from the following file: