Struct crankstart::display::Display
source · pub struct Display(_);
Implementations§
source§impl Display
impl Display
pub fn get() -> Self
pub fn get_size(&self) -> Result<ScreenSize, Error>
pub fn set_inverted(&self, inverted: bool) -> Result<(), Error>
pub fn set_scale(&self, scale_factor: u32) -> Result<(), Error>
pub fn set_mosaic(&self, amount: Vector2D<u32>) -> Result<(), Error>
pub fn set_offset(&self, offset: ScreenPoint) -> Result<(), Error>
pub fn set_refresh_rate(&self, rate: f32) -> Result<(), Error>
pub fn set_flipped(&self, flipped: Vector2D<bool>) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Display
impl !Send for Display
impl !Sync for Display
impl Unpin for Display
impl UnwindSafe for Display
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