pub struct ScreenInfoBuilder { /* private fields */ }Implementations§
Source§impl ScreenInfoBuilder
impl ScreenInfoBuilder
pub fn left(self, left: impl Into<i64>) -> ScreenInfoBuilder
pub fn top(self, top: impl Into<i64>) -> ScreenInfoBuilder
pub fn width(self, width: impl Into<i64>) -> ScreenInfoBuilder
pub fn height(self, height: impl Into<i64>) -> ScreenInfoBuilder
pub fn avail_left(self, avail_left: impl Into<i64>) -> ScreenInfoBuilder
pub fn avail_top(self, avail_top: impl Into<i64>) -> ScreenInfoBuilder
pub fn avail_width(self, avail_width: impl Into<i64>) -> ScreenInfoBuilder
pub fn avail_height(self, avail_height: impl Into<i64>) -> ScreenInfoBuilder
pub fn device_pixel_ratio( self, device_pixel_ratio: impl Into<f64>, ) -> ScreenInfoBuilder
pub fn orientation( self, orientation: impl Into<ScreenOrientation>, ) -> ScreenInfoBuilder
pub fn color_depth(self, color_depth: impl Into<i64>) -> ScreenInfoBuilder
pub fn is_extended(self, is_extended: impl Into<bool>) -> ScreenInfoBuilder
pub fn is_internal(self, is_internal: impl Into<bool>) -> ScreenInfoBuilder
pub fn is_primary(self, is_primary: impl Into<bool>) -> ScreenInfoBuilder
pub fn label(self, label: impl Into<String>) -> ScreenInfoBuilder
pub fn id(self, id: impl Into<ScreenId>) -> ScreenInfoBuilder
pub fn build(self) -> Result<ScreenInfo, String>
Trait Implementations§
Source§impl Clone for ScreenInfoBuilder
impl Clone for ScreenInfoBuilder
Source§fn clone(&self) -> ScreenInfoBuilder
fn clone(&self) -> ScreenInfoBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ScreenInfoBuilder
impl Default for ScreenInfoBuilder
Source§fn default() -> ScreenInfoBuilder
fn default() -> ScreenInfoBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScreenInfoBuilder
impl RefUnwindSafe for ScreenInfoBuilder
impl Send for ScreenInfoBuilder
impl Sync for ScreenInfoBuilder
impl Unpin for ScreenInfoBuilder
impl UnsafeUnpin for ScreenInfoBuilder
impl UnwindSafe for ScreenInfoBuilder
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