pub struct WebViewBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct WebView
objects.
Implementations§
Source§impl WebViewBuilder
impl WebViewBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new WebViewBuilder
.
pub fn web_context<P: IsA<WebContext>>(self, web_context: &P) -> Self
pub fn zoom_level(self, zoom_level: f64) -> Self
pub fn border_width(self, border_width: u32) -> Self
pub fn child<P: IsA<Widget>>(self, child: &P) -> Self
pub fn app_paintable(self, app_paintable: bool) -> Self
pub fn can_default(self, can_default: bool) -> Self
pub fn can_focus(self, can_focus: bool) -> Self
pub fn has_default(self, has_default: bool) -> Self
pub fn has_focus(self, has_focus: bool) -> Self
pub fn height_request(self, height_request: i32) -> Self
pub fn is_focus(self, is_focus: bool) -> Self
pub fn name(self, name: &str) -> Self
pub fn no_show_all(self, no_show_all: bool) -> Self
pub fn parent<P: IsA<Container>>(self, parent: &P) -> Self
pub fn receives_default(self, receives_default: bool) -> Self
pub fn sensitive(self, sensitive: bool) -> Self
pub fn visible(self, visible: bool) -> Self
pub fn width_request(self, width_request: i32) -> Self
Trait Implementations§
Source§impl Clone for WebViewBuilder
impl Clone for WebViewBuilder
Source§fn clone(&self) -> WebViewBuilder
fn clone(&self) -> WebViewBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for WebViewBuilder
impl Default for WebViewBuilder
Source§fn default() -> WebViewBuilder
fn default() -> WebViewBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WebViewBuilder
impl RefUnwindSafe for WebViewBuilder
impl !Send for WebViewBuilder
impl !Sync for WebViewBuilder
impl Unpin for WebViewBuilder
impl UnwindSafe for WebViewBuilder
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