pub struct VersoBuilder(/* private fields */);
Expand description
A builder for configuring and creating a VersoviewController
instance.
Implementations§
Source§impl VersoBuilder
impl VersoBuilder
Sourcepub fn with_panel(self, with_panel: bool) -> Self
pub fn with_panel(self, with_panel: bool) -> Self
Sets whether the control panel should be included.
Sourcepub fn inner_size(self, size: impl Into<Size>) -> Self
pub fn inner_size(self, size: impl Into<Size>) -> Self
Sets the initial window size.
Sourcepub fn maximized(self, maximized: bool) -> Self
pub fn maximized(self, maximized: bool) -> Self
Sets whether the window should start maximized.
Sourcepub fn visible(self, visible: bool) -> Self
pub fn visible(self, visible: bool) -> Self
Sets whether the window should be visible initially.
Sourcepub fn fullscreen(self, fullscreen: bool) -> Self
pub fn fullscreen(self, fullscreen: bool) -> Self
Sets whether the window should start in fullscreen mode.
Sourcepub fn focused(self, focused: bool) -> Self
pub fn focused(self, focused: bool) -> Self
Sets whether the window will be initially focused or not.
Sourcepub fn devtools_port(self, port: u16) -> Self
pub fn devtools_port(self, port: u16) -> Self
Port number to start a server to listen to remote Firefox devtools connections. 0 for random port.
Sourcepub fn profiler_settings(self, settings: ProfilerSettings) -> Self
pub fn profiler_settings(self, settings: ProfilerSettings) -> Self
Sets the profiler settings.
Sourcepub fn user_agent(self, user_agent: impl Into<String>) -> Self
pub fn user_agent(self, user_agent: impl Into<String>) -> Self
Overrides the user agent.
Sourcepub fn userscripts_directory(self, directory: impl Into<String>) -> Self
pub fn userscripts_directory(self, directory: impl Into<String>) -> Self
Sets the script to run when the document starts loading. Sets the directory to load user scripts from.
Sourcepub fn zoom_level(self, zoom: f32) -> Self
pub fn zoom_level(self, zoom: f32) -> Self
Sets the initial zoom level of the webview.
Sourcepub fn resources_directory(self, path: impl Into<PathBuf>) -> Self
pub fn resources_directory(self, path: impl Into<PathBuf>) -> Self
Sets the resource directory path.
Trait Implementations§
Source§impl Clone for VersoBuilder
impl Clone for VersoBuilder
Source§fn clone(&self) -> VersoBuilder
fn clone(&self) -> VersoBuilder
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 moreAuto Trait Implementations§
impl Freeze for VersoBuilder
impl RefUnwindSafe for VersoBuilder
impl Send for VersoBuilder
impl Sync for VersoBuilder
impl Unpin for VersoBuilder
impl UnwindSafe for VersoBuilder
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