Module window_affordance

Source
Expand description

VR-friendly window affordance frame.

This widget is a framework-level slate/window surface: it owns title-bar, chrome button, resize edge/corner hit zones, and visual feedback. Hosts can map emitted WindowAffordanceEvent values to desktop window operations or to OpenXR slate transforms.

Structs§

WindowAffordanceEvent
Provider-neutral chrome interaction emitted in screen logical pixels.
WindowAffordanceFrame
Retained frame that paints client chrome and emits provider-neutral actions.
WindowAffordanceStyle
Geometry and colors for WindowAffordanceFrame.

Enums§

WindowAffordanceDragPhase
Lifecycle phase emitted for an affordance interaction.
WindowAffordanceKind
Semantic operation represented by a chrome hit target.
WindowAffordanceState
Visual interaction state of one affordance.

Functions§

classify_window_affordance_hit
Resolves a point to the highest-priority enabled chrome affordance.