Struct VersoviewSettings
pub struct VersoviewSettings {Show 17 fields
pub url: Option<Url>,
pub with_panel: bool,
pub inner_size: Option<Size>,
pub position: Option<Position>,
pub maximized: bool,
pub visible: bool,
pub fullscreen: bool,
pub focused: bool,
pub decorated: bool,
pub transparent: bool,
pub title: Option<String>,
pub devtools_port: Option<u16>,
pub profiler_settings: Option<ProfilerSettings>,
pub user_agent: Option<String>,
pub user_scripts: Vec<UserScript>,
pub zoom_level: Option<f32>,
pub resources_directory: Option<PathBuf>,
}
Expand description
Configuration of Verso instance.
Fields§
§url: Option<Url>
URL to load initially.
with_panel: bool
Should launch without or without control panel
inner_size: Option<Size>
Window size for the initial winit window
position: Option<Position>
Window position for the initial winit window
maximized: bool
Launch maximized or not for the initial winit window
visible: bool
Launch visible or not for the initial winit window
fullscreen: bool
Launch fullscreen or not for the initial winit window
focused: bool
Launch focused or not for the initial winit window
decorated: bool
Launch decorated or not for the initial winit window
transparent: bool
Launch transparent or not for the initial winit window
title: Option<String>
Title of the initial winit window in the title bar.
devtools_port: Option<u16>
Port number to start a server to listen to remote Firefox devtools connections. 0 for random port.
profiler_settings: Option<ProfilerSettings>
Servo time profile settings
user_agent: Option<String>
Override the user agent
user_scripts: Vec<UserScript>
Script to run on document started to load
zoom_level: Option<f32>
Initial window’s zoom level
resources_directory: Option<PathBuf>
Path to resource directory. If None, Verso will try to get default directory. And if that still doesn’t exist, all resource configuration will set to default values.
Trait Implementations§
§impl Clone for ConfigFromController
impl Clone for ConfigFromController
§fn clone(&self) -> ConfigFromController
fn clone(&self) -> ConfigFromController
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more