docs
Loading...
Searching...
No Matches
ULAnchorDesc

#include <AppCore/CAPI/CAPI_Layout.h>

Overview

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

Member Data Documentation

◆ align

unsigned char align

A ULAnchorAlign value (Below).

◆ corner

unsigned char corner

A ULAnchorCorner value (WindowCorner).

◆ fit

unsigned char fit

A ULAnchorFit value (Below).

◆ kind

unsigned char kind

A ULAnchorKind value.

◆ offset_x

double offset_x

A logical-px nudge applied after any placement form resolves.

◆ offset_y

double offset_y

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

◆ target

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.

◆ x

double x

At: absolute window-space logical px.

◆ y

double y

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