Struct webkit2gtk::builders::WindowPropertiesBuilder
source · [−]pub struct WindowPropertiesBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct WindowProperties
objects.
Implementations
sourceimpl WindowPropertiesBuilder
impl WindowPropertiesBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new WindowPropertiesBuilder
.
sourcepub fn build(self) -> WindowProperties
pub fn build(self) -> WindowProperties
Build the WindowProperties
.
sourcepub fn fullscreen(self, fullscreen: bool) -> Self
pub fn fullscreen(self, fullscreen: bool) -> Self
Whether window will be displayed fullscreen.
sourcepub fn geometry(self, geometry: &Rectangle) -> Self
pub fn geometry(self, geometry: &Rectangle) -> Self
The size and position of the window on the screen.
sourcepub fn locationbar_visible(self, locationbar_visible: bool) -> Self
pub fn locationbar_visible(self, locationbar_visible: bool) -> Self
Whether the locationbar should be visible for the window.
Whether the menubar should be visible for the window.
sourcepub fn scrollbars_visible(self, scrollbars_visible: bool) -> Self
pub fn scrollbars_visible(self, scrollbars_visible: bool) -> Self
Whether the scrollbars should be visible for the window.
sourcepub fn statusbar_visible(self, statusbar_visible: bool) -> Self
pub fn statusbar_visible(self, statusbar_visible: bool) -> Self
Whether the statusbar should be visible for the window.
sourcepub fn toolbar_visible(self, toolbar_visible: bool) -> Self
pub fn toolbar_visible(self, toolbar_visible: bool) -> Self
Whether the toolbar should be visible for the window.
Trait Implementations
sourceimpl Clone for WindowPropertiesBuilder
impl Clone for WindowPropertiesBuilder
sourcefn clone(&self) -> WindowPropertiesBuilder
fn clone(&self) -> WindowPropertiesBuilder
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Default for WindowPropertiesBuilder
impl Default for WindowPropertiesBuilder
sourcefn default() -> WindowPropertiesBuilder
fn default() -> WindowPropertiesBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for WindowPropertiesBuilder
impl Send for WindowPropertiesBuilder
impl Sync for WindowPropertiesBuilder
impl Unpin for WindowPropertiesBuilder
impl UnwindSafe for WindowPropertiesBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more