pub struct WebView { /* private fields */ }Expand description
A web view being built: web_view or web_view_with, then
node to place it; handle for its
signals and navigation.
The top row is an address bar: ← back, → forward, ↻ reload, the
address, and … while the page loads. Click the address or press
Ctrl+L to type one (Enter opens it, Esc gives up); Alt+Left, Alt+Right
and F5 go back, forward and reload. Every other key, the mouse and
pastes go to the page while the view has the focus, except the keys
release_keys names.
Implementations§
Source§impl WebView
impl WebView
Sourcepub fn address_bar(self, on: bool) -> WebView
pub fn address_bar(self, on: bool) -> WebView
Show the address bar (default) or not: an app may draw its own from the handle’s signals.
Sourcepub fn release_keys(self, keys: &str) -> WebView
pub fn release_keys(self, keys: &str) -> WebView
Keys (space-separated names, as Node::on_key takes them) that
are not sent to the page but go on to the app’s bindings.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for WebView
impl !Send for WebView
impl !Sync for WebView
impl !UnwindSafe for WebView
impl Freeze for WebView
impl Unpin for WebView
impl UnsafeUnpin for WebView
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> 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.