pub struct Overlay {
pub content: Box<dyn Component>,
pub position: OverlayPosition,
pub constraints: OverlayConstraints,
}Expand description
A floating component rendered on top of the main UI.
Fields§
§content: Box<dyn Component>The component to render.
position: OverlayPositionHow the overlay’s position is determined.
constraints: OverlayConstraintsSizing and visibility constraints.
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Overlay
impl !Send for Overlay
impl !Sync for Overlay
impl !UnwindSafe for Overlay
impl Freeze for Overlay
impl Unpin for Overlay
impl UnsafeUnpin for Overlay
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