pub struct AddScreenParamsBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> AddScreenParamsBuilder<'a>
impl<'a> AddScreenParamsBuilder<'a>
Sourcepub fn workAreaInsets(self, workAreaInsets: WorkAreaInsets) -> Self
pub fn workAreaInsets(self, workAreaInsets: WorkAreaInsets) -> Self
Specifies the screen’s work area. Default is entire screen.
Sourcepub fn devicePixelRatio(self, devicePixelRatio: f64) -> Self
pub fn devicePixelRatio(self, devicePixelRatio: f64) -> Self
Specifies the screen’s device pixel ratio. Default is 1.
Sourcepub fn rotation(self, rotation: i64) -> Self
pub fn rotation(self, rotation: i64) -> Self
Specifies the screen’s rotation angle. Available values are 0, 90, 180 and 270. Default is 0.
Sourcepub fn colorDepth(self, colorDepth: i64) -> Self
pub fn colorDepth(self, colorDepth: i64) -> Self
Specifies the screen’s color depth in bits. Default is 24.
Sourcepub fn label(self, label: impl Into<Cow<'a, str>>) -> Self
pub fn label(self, label: impl Into<Cow<'a, str>>) -> Self
Specifies the descriptive label for the screen. Default is none.
Sourcepub fn isInternal(self, isInternal: bool) -> Self
pub fn isInternal(self, isInternal: bool) -> Self
Indicates whether the screen is internal to the device or external, attached to the device. Default is false.
pub fn build(self) -> AddScreenParams<'a>
Auto Trait Implementations§
impl<'a> Freeze for AddScreenParamsBuilder<'a>
impl<'a> RefUnwindSafe for AddScreenParamsBuilder<'a>
impl<'a> Send for AddScreenParamsBuilder<'a>
impl<'a> Sync for AddScreenParamsBuilder<'a>
impl<'a> Unpin for AddScreenParamsBuilder<'a>
impl<'a> UnsafeUnpin for AddScreenParamsBuilder<'a>
impl<'a> UnwindSafe for AddScreenParamsBuilder<'a>
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