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§
source§impl Clone for playdate_display
impl Clone for playdate_display
source§fn clone(&self) -> playdate_display
fn clone(&self) -> playdate_display
Returns a copy 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<playdate_display> for playdate_display
impl PartialEq<playdate_display> for playdate_display
source§fn 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 ==
.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§
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