#[non_exhaustive]pub struct WindowRecord {
pub id: String,
pub kind: WindowKind,
pub owner: String,
pub parent: Option<String>,
pub viewport: Option<String>,
pub opened_because: Reason,
pub active: bool,
pub surface: Option<Value>,
pub handles: bool,
pub transparency: Option<Transparency>,
/* private fields */
}Expand description
A window or popup as the registry holds it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: String§kind: WindowKind§owner: String§parent: Option<String>§viewport: Option<String>Its viewport, as egui’s debug text names it (9FA2), when it has
one.
opened_because: ReasonThe reason of the request that opened it.
active: boolWhether it is the active window, the one worked in
(pop.window.activate): one window of the list is.
surface: Option<Value>What draws into its own surface besides egui, as that part says it
(egui_pop_core::window_surface): the image viewport’s image
surface, its format, colour space, route or why it has none.
handles: boolWhether its native window’s handles are known (runner::window
answers for its viewport): what a surface of its own needs.
transparency: Option<Transparency>How its native window was built for a surface below egui:
transparent, or opaque and why
(egui_pop_core::window_surface::transparency), when its builder
said it.
Implementations§
Source§impl WindowRecord
impl WindowRecord
Sourcepub fn viewport_id(&self) -> Option<ViewportId>
pub fn viewport_id(&self) -> Option<ViewportId>
Its viewport, when it has one.
Trait Implementations§
Source§impl Clone for WindowRecord
impl Clone for WindowRecord
Source§fn clone(&self) -> WindowRecord
fn clone(&self) -> WindowRecord
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WindowRecord
impl Debug for WindowRecord
Source§impl PartialEq for WindowRecord
impl PartialEq for WindowRecord
Source§impl Serialize for WindowRecord
impl Serialize for WindowRecord
impl StructuralPartialEq for WindowRecord
Auto Trait Implementations§
impl Freeze for WindowRecord
impl RefUnwindSafe for WindowRecord
impl Send for WindowRecord
impl Sync for WindowRecord
impl Unpin for WindowRecord
impl UnsafeUnpin for WindowRecord
impl UnwindSafe for WindowRecord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more