pub struct SetDeviceMetricsOverrideCommandBuilder { /* private fields */ }Page and Debugger and DOM and IO and Network and Runtime and experimental only.Implementationsยง
Sourceยงimpl SetDeviceMetricsOverrideCommandBuilder
impl SetDeviceMetricsOverrideCommandBuilder
Sourcepub fn width(&mut self, v: u32) -> &mut Self
๐Deprecated
pub fn width(&mut self, v: u32) -> &mut Self
Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override.
Sourcepub fn height(&mut self, v: u32) -> &mut Self
๐Deprecated
pub fn height(&mut self, v: u32) -> &mut Self
Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override.
Sourcepub fn device_scale_factor(&mut self, v: f64) -> &mut Self
๐Deprecated
pub fn device_scale_factor(&mut self, v: f64) -> &mut Self
Overriding device scale factor value. 0 disables the override.
Sourcepub fn mobile(&mut self, v: bool) -> &mut Self
๐Deprecated
pub fn mobile(&mut self, v: bool) -> &mut Self
Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more.
Sourcepub fn scale(&mut self, v: f64) -> &mut Self
๐Deprecated
pub fn scale(&mut self, v: f64) -> &mut Self
Scale to apply to resulting view image.
Sourcepub fn screen_width(&mut self, v: u32) -> &mut Self
๐Deprecated
pub fn screen_width(&mut self, v: u32) -> &mut Self
Overriding screen width value in pixels (minimum 0, maximum 10000000).
Sourcepub fn screen_height(&mut self, v: u32) -> &mut Self
๐Deprecated
pub fn screen_height(&mut self, v: u32) -> &mut Self
Overriding screen height value in pixels (minimum 0, maximum 10000000).
Sourcepub fn position_x(&mut self, v: u32) -> &mut Self
๐Deprecated
pub fn position_x(&mut self, v: u32) -> &mut Self
Overriding view X position on screen in pixels (minimum 0, maximum 10000000).
Sourcepub fn position_y(&mut self, v: u32) -> &mut Self
๐Deprecated
pub fn position_y(&mut self, v: u32) -> &mut Self
Overriding view Y position on screen in pixels (minimum 0, maximum 10000000).
Sourcepub fn dont_set_visible_size(&mut self, v: bool) -> &mut Self
๐Deprecated
pub fn dont_set_visible_size(&mut self, v: bool) -> &mut Self
Do not set visible view size, rely upon explicit setVisibleSize call.
Sourcepub fn screen_orientation(&mut self, v: ScreenOrientation) -> &mut Self
๐Deprecated
pub fn screen_orientation(&mut self, v: ScreenOrientation) -> &mut Self
Screen orientation override.
Sourcepub fn viewport(&mut self, v: Viewport) -> &mut Self
๐Deprecated
pub fn viewport(&mut self, v: Viewport) -> &mut Self
The viewport dimensions and scale. If not set, the override is cleared.
pub fn build(&mut self) -> Result<SetDeviceMetricsOverrideCommand, &'static str>
Trait Implementationsยง
Sourceยงimpl Clone for SetDeviceMetricsOverrideCommandBuilder
impl Clone for SetDeviceMetricsOverrideCommandBuilder
Sourceยงfn clone(&self) -> SetDeviceMetricsOverrideCommandBuilder
fn clone(&self) -> SetDeviceMetricsOverrideCommandBuilder
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more