pub struct AddScreen {
pub left: JsUInt,
pub top: JsUInt,
pub width: JsUInt,
pub height: JsUInt,
pub work_area_insets: Option<WorkAreaInsets>,
pub device_pixel_ratio: Option<JsFloat>,
pub rotation: Option<JsUInt>,
pub color_depth: Option<JsUInt>,
pub label: Option<String>,
pub is_internal: Option<bool>,
}Expand description
Add a new screen to the device. Only supported in headless mode.
Fields§
§left: JsUIntOffset of the left edge of the screen in pixels.
top: JsUIntOffset of the top edge of the screen in pixels.
width: JsUIntThe width of the screen in pixels.
height: JsUIntThe height of the screen in pixels.
work_area_insets: Option<WorkAreaInsets>Specifies the screen’s work area. Default is entire screen.
device_pixel_ratio: Option<JsFloat>Specifies the screen’s device pixel ratio. Default is 1.
rotation: Option<JsUInt>Specifies the screen’s rotation angle. Available values are 0, 90, 180 and 270. Default is 0.
color_depth: Option<JsUInt>Specifies the screen’s color depth in bits. Default is 24.
label: Option<String>Specifies the descriptive label for the screen. Default is none.
is_internal: Option<bool>Indicates whether the screen is internal to the device or external, attached to the device. Default is false.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AddScreen
impl<'de> Deserialize<'de> for AddScreen
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Method for AddScreen
impl Method for AddScreen
const NAME: &'static str = "Emulation.addScreen"
type ReturnObject = AddScreenReturnObject
fn to_method_call(self, call_id: CallId) -> MethodCall<Self>where
Self: Sized,
impl StructuralPartialEq for AddScreen
Auto Trait Implementations§
impl Freeze for AddScreen
impl RefUnwindSafe for AddScreen
impl Send for AddScreen
impl Sync for AddScreen
impl Unpin for AddScreen
impl UnsafeUnpin for AddScreen
impl UnwindSafe for AddScreen
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