pub struct AddScreen { /* private fields */ }Expand description
Add a new screen to the device. Only supported in headless mode. EXPERIMENTAL: This feature is experimental and may change or be removed.
Implementations§
Source§impl AddScreen
impl AddScreen
pub fn new( left: impl Into<i64>, top: impl Into<i64>, width: impl Into<i64>, height: impl Into<i64>, ) -> Self
pub fn with_work_area_insets( self, work_area_insets: impl Into<WorkAreaInsets>, ) -> Self
pub fn with_device_pixel_ratio(self, device_pixel_ratio: impl Into<f64>) -> Self
pub fn with_rotation(self, rotation: impl Into<i64>) -> Self
pub fn with_color_depth(self, color_depth: impl Into<i64>) -> Self
pub fn with_label(self, label: impl Into<String>) -> Self
pub fn with_is_internal(self, is_internal: impl Into<bool>) -> Self
Trait Implementations§
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