pub struct OverlayState {Show 18 fields
pub open: bool,
pub kind: OverlayKind,
pub style: OverlayStyle,
pub initial_focus: Option<u64>,
pub dismiss_policy: OverlayDismissPolicy,
pub accessible_title: Option<String>,
pub accessible_description: Option<String>,
pub fullscreen: bool,
pub suspended: bool,
pub transform_origin: Option<[f32; 2]>,
pub drag_to_dismiss: bool,
pub bottom_sheet_peek: Option<f32>,
pub bottom_sheet_expanded: bool,
pub bottom_sheet_half_ratio: Option<f32>,
pub bottom_sheet_half_expanded: bool,
pub bottom_sheet_content_top: Option<f32>,
pub bottom_sheet_content_height: f32,
pub bottom_sheet_scroll_offset: f32,
/* private fields */
}Expand description
Caller-owned overlay lifetime and focus return point.
Fields§
§open: bool§kind: OverlayKind§style: OverlayStyle§initial_focus: Option<u64>§dismiss_policy: OverlayDismissPolicy§accessible_title: Option<String>Accessible title and description for a modal dialog.
accessible_description: Option<String>§fullscreen: boolFill the host viewport when this overlay is a dialog.
suspended: boolTemporarily suspend this overlay while a separately rendered child modal owns input. The caller clears this when the child has closed.
transform_origin: Option<[f32; 2]>§drag_to_dismiss: boolAllow dragging a Material bottom sheet from its top 32 logical pixels.
bottom_sheet_peek: Option<f32>When set, a non-modal sheet settles between this visible peek height and full height.
bottom_sheet_expanded: boolCurrent target detent for a sheet with a peek height.
bottom_sheet_half_ratio: Option<f32>Optional visible viewport-height fraction for an intermediate detent.
bottom_sheet_half_expanded: boolWhether the current target is the intermediate detent.
bottom_sheet_content_top: Option<f32>Offset of the scrollable region below the sheet’s top; None disables nested scrolling.
bottom_sheet_content_height: f32Total scrollable content height in logical pixels.
bottom_sheet_scroll_offset: f32Current nested content scroll position.