pub struct OffscreenView { /* private fields */ }Expand description
Live layout of one offscreen webview, shared with its render handler.
Implementations§
Source§impl OffscreenView
impl OffscreenView
Sourcepub fn window(&self) -> Option<Arc<dyn Window>>
pub fn window(&self) -> Option<Arc<dyn Window>>
Native host used for scale, screen coordinates, IME and redraw requests.
None once the runtime released the window; do not keep the returned
reference past Destroyed.
Sourcepub fn request_redraw(&self)
pub fn request_redraw(&self)
Asks the host window to redraw, if it still exists.
Sourcepub fn is_visible(&self) -> bool
pub fn is_visible(&self) -> bool
Requested webview visibility, independent of native window occlusion.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for OffscreenView
impl !UnwindSafe for OffscreenView
impl Freeze for OffscreenView
impl Send for OffscreenView
impl Sync for OffscreenView
impl Unpin for OffscreenView
impl UnsafeUnpin for OffscreenView
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, U> ConvertReturnValue<U> for Twhere
T: Into<U>,
impl<T, U> ConvertReturnValue<U> for Twhere
T: Into<U>,
fn wrap_result(self) -> U
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.