pub struct OverlayEntry {
pub id: LayerId,
pub position: LayerPosition,
pub widget: BoxedWidget,
pub input: InputBehavior,
pub focus: FocusBehavior,
pub scrim: Option<ScrimConfig>,
}Expand description
A single entry in the overlay stack.
Entries are painted top-to-bottom in insertion order (last = topmost). See D058 in DECISIONS.md for the full architecture.
Fields§
§id: LayerId§position: LayerPosition§widget: BoxedWidget§input: InputBehavior§focus: FocusBehavior§scrim: Option<ScrimConfig>Implementations§
Source§impl OverlayEntry
impl OverlayEntry
pub fn new(position: LayerPosition, widget: impl Widget + 'static) -> Self
pub fn input(self, b: InputBehavior) -> Self
pub fn focus(self, b: FocusBehavior) -> Self
pub fn scrim(self, s: ScrimConfig) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for OverlayEntry
impl !UnwindSafe for OverlayEntry
impl Freeze for OverlayEntry
impl Send for OverlayEntry
impl Sync for OverlayEntry
impl Unpin for OverlayEntry
impl UnsafeUnpin for OverlayEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more