pub struct ResolvedWindow<X: GXExt> {
pub gx: GXHandle<X>,
pub title: TRef<X, String>,
pub size: TRef<X, SizeV>,
pub theme: TRef<X, ThemeV>,
pub icon: TRef<X, ImageSourceV>,
pub decoded_icon: Option<Icon>,
pub content_ref: Ref<X>,
pub content: GuiW<X>,
}Expand description
Resolved window state — all refs compiled but no OS window yet.
Fields§
§gx: GXHandle<X>§title: TRef<X, String>§size: TRef<X, SizeV>§theme: TRef<X, ThemeV>§icon: TRef<X, ImageSourceV>§decoded_icon: Option<Icon>§content_ref: Ref<X>§content: GuiW<X>Implementations§
Source§impl<X: GXExt> ResolvedWindow<X>
impl<X: GXExt> ResolvedWindow<X>
Sourcepub async fn compile(gx: GXHandle<X>, source: Value) -> Result<Self>
pub async fn compile(gx: GXHandle<X>, source: Value) -> Result<Self>
Compile a window struct value into resolved refs without creating an OS window.
Sourcepub fn window_attrs(&self) -> WindowAttributes
pub fn window_attrs(&self) -> WindowAttributes
Build winit WindowAttributes from the resolved title/size refs.
Sourcepub fn into_tracked(
self,
window_ref: Ref<X>,
window: Arc<Window>,
) -> TrackedWindow<X>
pub fn into_tracked( self, window_ref: Ref<X>, window: Arc<Window>, ) -> TrackedWindow<X>
Consume self and attach an OS window, producing a TrackedWindow.
Auto Trait Implementations§
impl<X> !Freeze for ResolvedWindow<X>
impl<X> !RefUnwindSafe for ResolvedWindow<X>
impl<X> Send for ResolvedWindow<X>
impl<X> !Sync for ResolvedWindow<X>
impl<X> Unpin for ResolvedWindow<X>
impl<X> UnsafeUnpin for ResolvedWindow<X>
impl<X> !UnwindSafe for ResolvedWindow<X>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> 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.