#[repr(C)]pub struct playdate_display {
pub getWidth: Option<unsafe extern "C" fn() -> c_int>,
pub getHeight: Option<unsafe extern "C" fn() -> c_int>,
pub setRefreshRate: Option<unsafe extern "C" fn(rate: f32)>,
pub setInverted: Option<unsafe extern "C" fn(flag: c_int)>,
pub setScale: Option<unsafe extern "C" fn(s: c_uint)>,
pub setMosaic: Option<unsafe extern "C" fn(x: c_uint, y: c_uint)>,
pub setFlipped: Option<unsafe extern "C" fn(x: c_int, y: c_int)>,
pub setOffset: Option<unsafe extern "C" fn(x: c_int, y: c_int)>,
}Fields§
§getWidth: Option<unsafe extern "C" fn() -> c_int>§getHeight: Option<unsafe extern "C" fn() -> c_int>§setRefreshRate: Option<unsafe extern "C" fn(rate: f32)>§setInverted: Option<unsafe extern "C" fn(flag: c_int)>§setScale: Option<unsafe extern "C" fn(s: c_uint)>§setMosaic: Option<unsafe extern "C" fn(x: c_uint, y: c_uint)>§setFlipped: Option<unsafe extern "C" fn(x: c_int, y: c_int)>§setOffset: Option<unsafe extern "C" fn(x: c_int, y: c_int)>Trait Implementations§
Source§impl Clone for playdate_display
impl Clone for playdate_display
Source§fn clone(&self) -> playdate_display
fn clone(&self) -> playdate_display
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 Debug for playdate_display
impl Debug for playdate_display
Source§impl Default for playdate_display
impl Default for playdate_display
Source§fn default() -> playdate_display
fn default() -> playdate_display
Returns the “default value” for a type. Read more
Source§impl PartialEq for playdate_display
impl PartialEq for playdate_display
impl Copy for playdate_display
impl Eq for playdate_display
impl StructuralPartialEq for playdate_display
Auto Trait Implementations§
impl Freeze for playdate_display
impl RefUnwindSafe for playdate_display
impl Send for playdate_display
impl Sync for playdate_display
impl Unpin for playdate_display
impl UnwindSafe for playdate_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