pub struct OverlayEntry {
pub id: OverlayId,
pub kind: OverlayKind,
pub parent: Option<OverlayId>,
pub modal: bool,
pub dismiss_policy: OverlayDismissPolicy,
pub layer: i32,
pub bounds: UiRect,
pub focus_restore: Option<OverlayFocusRestoreTarget>,
/* private fields */
}Fields§
§id: OverlayId§kind: OverlayKind§parent: Option<OverlayId>§modal: bool§dismiss_policy: OverlayDismissPolicy§layer: i32§bounds: UiRect§focus_restore: Option<OverlayFocusRestoreTarget>Implementations§
Source§impl OverlayEntry
impl OverlayEntry
pub const fn new(id: OverlayId, kind: OverlayKind, bounds: UiRect) -> Self
pub const fn parent(self, parent: OverlayId) -> Self
pub const fn modal(self, modal: bool) -> Self
pub const fn dismiss_policy(self, dismiss_policy: OverlayDismissPolicy) -> Self
pub const fn layer(self, layer: i32) -> Self
pub fn focus_restore(self, target: OverlayFocusRestoreTarget) -> Self
Trait Implementations§
Source§impl Clone for OverlayEntry
impl Clone for OverlayEntry
Source§fn clone(&self) -> OverlayEntry
fn clone(&self) -> OverlayEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OverlayEntry
impl Debug for OverlayEntry
Source§impl From<&OverlayEntry> for OverlayEntryDiagnostic
impl From<&OverlayEntry> for OverlayEntryDiagnostic
Source§fn from(entry: &OverlayEntry) -> Self
fn from(entry: &OverlayEntry) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OverlayEntry
impl PartialEq for OverlayEntry
Source§fn eq(&self, other: &OverlayEntry) -> bool
fn eq(&self, other: &OverlayEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OverlayEntry
Auto Trait Implementations§
impl Freeze for OverlayEntry
impl RefUnwindSafe for OverlayEntry
impl Send for OverlayEntry
impl Sync for OverlayEntry
impl Unpin for OverlayEntry
impl UnsafeUnpin for OverlayEntry
impl UnwindSafe 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.