Trait wry::WebViewExtUnix

source ·
pub trait WebViewExtUnix: Sized {
    // Required methods
    fn new_gtk<W>(widget: &W) -> Result<Self>
       where W: IsA<Container>;
    fn webview(&self) -> WebView;
    fn reparent<W>(&self, widget: &W) -> Result<()>
       where W: IsA<Container>;
}
Expand description

Additional methods on WebView that are specific to Linux.

Required Methods§

source

fn new_gtk<W>(widget: &W) -> Result<Self>
where W: IsA<Container>,

Create the webview inside a GTK container widget, such as GTK window.

§Panics:
  • Panics if gtk::init was not called in this thread.
source

fn webview(&self) -> WebView

Returns Webkit2gtk Webview handle

source

fn reparent<W>(&self, widget: &W) -> Result<()>
where W: IsA<Container>,

Attaches this webview to the given Widget and removes it from the current one.

Object Safety§

This trait is not object safe.

Implementors§