Trait WebViewExtUnix

Source
pub trait WebViewExtUnix: Sized {
    // Required methods
    fn new_gtk<W>(widget: &W) -> Result<Self>
       where W: IsA<Container>;
    fn webview(&self) -> WebView;
}
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 from 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§