Struct quickmd::ui::Browser[][src]

pub struct Browser { /* fields omitted */ }
Expand description

A thin layer on top of webkit2gtk::WebView to put helper methods into.

Implementations

Construct a new instance with the provided Config.

Delegates to webkit2gtk::WebView

Delegates to webkit2gtk::WebView

Increase zoom level by ~10%

Decrease zoom level by ~10%, down till 20% or so.

Reset to the base zoom level defined in the config (which defaults to 100%).

Get the deserialized PageState from the current contents of the webview. This is later rendered unchanged into the HTML content.

Execute some (async) javascript code in the webview, without checking the result other than printing a warning if it errors out.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.