pub struct AddScreenParamsBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> AddScreenParamsBuilder<'a>
impl<'a> AddScreenParamsBuilder<'a>
Sourcepub fn work_area_insets(self, work_area_insets: WorkAreaInsets) -> Self
pub fn work_area_insets(self, work_area_insets: WorkAreaInsets) -> Self
Specifies the screen’s work area. Default is entire screen.
Sourcepub fn device_pixel_ratio(self, device_pixel_ratio: f64) -> Self
pub fn device_pixel_ratio(self, device_pixel_ratio: 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 color_depth(self, color_depth: i64) -> Self
pub fn color_depth(self, color_depth: 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 is_internal(self, is_internal: bool) -> Self
pub fn is_internal(self, is_internal: 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