pub struct SetDeviceMetricsOverrideCommandBuilder { /* private fields */ }Emulation and DOM and Page and Runtime only.Implementations§
Source§impl SetDeviceMetricsOverrideCommandBuilder
impl SetDeviceMetricsOverrideCommandBuilder
Sourcepub fn width(&mut self, v: u32) -> &mut Self
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
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
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
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
Available on crate feature experimental only.
pub fn scale(&mut self, v: f64) -> &mut Self
experimental only.Scale to apply to resulting view image.
Sourcepub fn screen_width(&mut self, v: u32) -> &mut Self
Available on crate feature experimental only.
pub fn screen_width(&mut self, v: u32) -> &mut Self
experimental only.Overriding screen width value in pixels (minimum 0, maximum 10000000).
Sourcepub fn screen_height(&mut self, v: u32) -> &mut Self
Available on crate feature experimental only.
pub fn screen_height(&mut self, v: u32) -> &mut Self
experimental only.Overriding screen height value in pixels (minimum 0, maximum 10000000).
Sourcepub fn position_x(&mut self, v: u32) -> &mut Self
Available on crate feature experimental only.
pub fn position_x(&mut self, v: u32) -> &mut Self
experimental only.Overriding view X position on screen in pixels (minimum 0, maximum 10000000).
Sourcepub fn position_y(&mut self, v: u32) -> &mut Self
Available on crate feature experimental only.
pub fn position_y(&mut self, v: u32) -> &mut Self
experimental only.Overriding view Y position on screen in pixels (minimum 0, maximum 10000000).
Sourcepub fn dont_set_visible_size(&mut self, v: bool) -> &mut Self
Available on crate feature experimental only.
pub fn dont_set_visible_size(&mut self, v: bool) -> &mut Self
experimental only.Do not set visible view size, rely upon explicit setVisibleSize call.
Sourcepub fn screen_orientation(&mut self, v: ScreenOrientation) -> &mut Self
pub fn screen_orientation(&mut self, v: ScreenOrientation) -> &mut Self
Screen orientation override.
Sourcepub fn viewport(&mut self, v: Viewport) -> &mut Self
Available on crate feature experimental only.
pub fn viewport(&mut self, v: Viewport) -> &mut Self
experimental only.If set, the visible area of the page will be overridden to this viewport. This viewport change is not observed by the page, e.g. viewport-relative elements do not change positions.
Sourcepub fn display_feature(&mut self, v: DisplayFeature) -> &mut Self
Available on crate feature experimental only.
pub fn display_feature(&mut self, v: DisplayFeature) -> &mut Self
experimental only.If set, the display feature of a multi-segment screen. If not set, multi-segment support is turned-off.
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