|
Ultralight C API 2.0.0
|
#include <AppCore/CAPI/CAPI_Layout.h>
Placement for a foreground (floating) panel, the flattened form of the C++ Anchor.
Zero-initialize the desc. Only the fields the declared kind reads are meaningful, and the rest stay zero. A zero-initialized desc is the window origin.
Public Attributes | |
| unsigned char | kind |
| A ULAnchorKind value. | |
| unsigned char | corner |
| A ULAnchorCorner value (WindowCorner). | |
| unsigned char | align |
| A ULAnchorAlign value (Below). | |
| unsigned char | fit |
| A ULAnchorFit value (Below). | |
| double | x |
| At: absolute window-space logical px. | |
| double | y |
| double | offset_x |
| A logical-px nudge applied after any placement form resolves. | |
| double | offset_y |
| ULPanel | target |
| Below: the panel the anchor rect is local to (borrowed at the call, the floating panel keeps its own reference). | |
| ULLayoutRect | rect |
| Below: the anchor rect in the target panel's local logical px, which equals the hosted page's CSS px (an element rect passes straight through). | |
| unsigned char align |
A ULAnchorAlign value (Below).
| unsigned char corner |
A ULAnchorCorner value (WindowCorner).
| unsigned char fit |
A ULAnchorFit value (Below).
| unsigned char kind |
A ULAnchorKind value.
| double offset_x |
A logical-px nudge applied after any placement form resolves.
| double offset_y |
| ULLayoutRect rect |
Below: the anchor rect in the target panel's local logical px, which equals the hosted page's CSS px (an element rect passes straight through).
| ULPanel target |
Below: the panel the anchor rect is local to (borrowed at the call, the floating panel keeps its own reference).
Must be a live panel of the same window.
| double x |
At: absolute window-space logical px.
| double y |