Struct playdate_display::api::Default
source · pub struct Default;Expand description
Default display api end-point, ZST.
All calls approximately costs ~3 derefs.
Trait Implementations§
source§impl Api for Default
impl Api for Default
source§fn get_width(&self) -> unsafe extern "C" fn() -> c_int
fn get_width(&self) -> unsafe extern "C" fn() -> c_int
Equivalent to
sys::ffi::playdate_display::getWidthsource§fn get_height(&self) -> unsafe extern "C" fn() -> c_int
fn get_height(&self) -> unsafe extern "C" fn() -> c_int
Equivalent to
sys::ffi::playdate_display::getHeightsource§fn set_refresh_rate(&self) -> unsafe extern "C" fn(rate: c_float)
fn set_refresh_rate(&self) -> unsafe extern "C" fn(rate: c_float)
Equivalent to
sys::ffi::playdate_display::setRefreshRatesource§fn set_inverted(&self) -> unsafe extern "C" fn(flag: c_int)
fn set_inverted(&self) -> unsafe extern "C" fn(flag: c_int)
Equivalent to
sys::ffi::playdate_display::setInvertedsource§fn set_scale(&self) -> unsafe extern "C" fn(s: c_uint)
fn set_scale(&self) -> unsafe extern "C" fn(s: c_uint)
Equivalent to
sys::ffi::playdate_display::setScalesource§fn set_mosaic(&self) -> unsafe extern "C" fn(x: c_uint, y: c_uint)
fn set_mosaic(&self) -> unsafe extern "C" fn(x: c_uint, y: c_uint)
Equivalent to
sys::ffi::playdate_display::setMosaicsource§fn set_flipped(&self) -> unsafe extern "C" fn(x: c_int, y: c_int)
fn set_flipped(&self) -> unsafe extern "C" fn(x: c_int, y: c_int)
Equivalent to
sys::ffi::playdate_display::setFlippedsource§fn set_offset(&self) -> unsafe extern "C" fn(x: c_int, y: c_int)
fn set_offset(&self) -> unsafe extern "C" fn(x: c_int, y: c_int)
Equivalent to
sys::ffi::playdate_display::setOffsetimpl Copy for Default
Auto Trait Implementations§
impl RefUnwindSafe for Default
impl Send for Default
impl Sync for Default
impl Unpin for Default
impl UnwindSafe for Default
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere U: From<T>,
§impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere T: Clone,
§impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
impl<T, U> TryFrom<U> for Twhere U: Into<T>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 0 bytes