Struct crankstart_sys::playdate_display
source · [−]#[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
sourceimpl Clone for playdate_display
impl Clone for playdate_display
sourcefn clone(&self) -> playdate_display
fn clone(&self) -> playdate_display
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for playdate_display
impl Debug for playdate_display
sourceimpl Default for playdate_display
impl Default for playdate_display
sourcefn default() -> playdate_display
fn default() -> playdate_display
Returns the “default value” for a type. Read more
sourceimpl PartialEq<playdate_display> for playdate_display
impl PartialEq<playdate_display> for playdate_display
sourcefn eq(&self, other: &playdate_display) -> bool
fn eq(&self, other: &playdate_display) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &playdate_display) -> bool
fn ne(&self, other: &playdate_display) -> bool
This method tests for !=
.
impl Copy for playdate_display
impl Eq for playdate_display
impl StructuralEq for playdate_display
impl StructuralPartialEq for playdate_display
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more