pub struct ResolvedOverlay {Show 13 fields
pub node: NodeId,
pub origin_x: f32,
pub origin_y: f32,
pub width: f32,
pub height: f32,
pub placement: OverlayPlacement,
pub layer: OverlayLayer,
pub is_modal: bool,
pub has_backdrop_scrim: bool,
pub light_dismiss: bool,
pub close_on_escape: bool,
pub backdrop_color: ColorRgba,
pub anchor: NodeId,
}Expand description
Reconciled viewport-space geometry and layer metadata for one open top-layer Overlay.
Fields§
§node: NodeId§origin_x: f32Resolved top-layer origin in logical viewport coordinates.
origin_y: f32§width: f32Effective width after optional AUTO_SIZE viewport clamping.
height: f32Effective height after optional AUTO_SIZE viewport clamping.
placement: OverlayPlacement§layer: OverlayLayer§is_modal: bool§has_backdrop_scrim: bool§light_dismiss: bool§close_on_escape: boolCloses on an unconsumed close request (Overlay::options CLOSE_ON_ESCAPE).
backdrop_color: ColorRgbaOverlay::backdrop_color; painted only when has_backdrop_scrim.
anchor: NodeIdLive node resolved from Overlay::anchor_id (NodeId::NULL when unanchored or
unresolved). A press on it never light-dismisses the overlay.
Implementations§
Source§impl ResolvedOverlay
impl ResolvedOverlay
Sourcepub const fn backdrop(&self) -> Option<ColorRgba>
pub const fn backdrop(&self) -> Option<ColorRgba>
The scrim color painted behind this overlay, or None without a backdrop scrim.
Sourcepub fn box_contains(&self, x: f32, y: f32) -> bool
pub fn box_contains(&self, x: f32, y: f32) -> bool
Inclusive containment of the (untransformed, overlay-space) point (x, y) in this
overlay’s box. An empty box and a non-finite point never contain: the box test every host
port of the pointer-down policy applies (C++ / Swift contains, Java / Dart / TS).
Sourcepub fn overlay_item(&self) -> NvOverlayItem
pub fn overlay_item(&self) -> NvOverlayItem
The NvOverlayItem the runtime publishes for this overlay (NvSceneView::overlays).