pub struct Default;Expand description
Default system api end-point, ZST.
All calls approximately costs ~3 derefs.
Trait Implementations§
Source§impl Api for Default
impl Api for Default
Source§fn get_language(&self) -> unsafe extern "C" fn() -> PDLanguage
fn get_language(&self) -> unsafe extern "C" fn() -> PDLanguage
Equivalent to
sys::ffi::playdate_sys::getLanguageSource§fn get_current_time_milliseconds(&self) -> unsafe extern "C" fn() -> c_uint
fn get_current_time_milliseconds(&self) -> unsafe extern "C" fn() -> c_uint
Equivalent to
sys::ffi::playdate_sys::getCurrentTimeMillisecondsSource§fn get_seconds_since_epoch(
&self,
) -> unsafe extern "C" fn(milliseconds: *mut c_uint) -> c_uint
fn get_seconds_since_epoch( &self, ) -> unsafe extern "C" fn(milliseconds: *mut c_uint) -> c_uint
Equivalent to
sys::ffi::playdate_sys::getSecondsSinceEpochSource§fn draw_fps(&self) -> unsafe extern "C" fn(x: c_int, y: c_int)
fn draw_fps(&self) -> unsafe extern "C" fn(x: c_int, y: c_int)
Equivalent to
sys::ffi::playdate_sys::drawFPSSource§fn set_update_callback(
&self,
) -> unsafe extern "C" fn(update: PDCallbackFunction, userdata: *mut c_void)
fn set_update_callback( &self, ) -> unsafe extern "C" fn(update: PDCallbackFunction, userdata: *mut c_void)
Equivalent to
sys::ffi::playdate_sys::setUpdateCallbackSource§fn get_flipped(&self) -> unsafe extern "C" fn() -> c_int
fn get_flipped(&self) -> unsafe extern "C" fn() -> c_int
Equivalent to
sys::ffi::playdate_sys::getFlippedSource§fn set_auto_lock_disabled(&self) -> unsafe extern "C" fn(disable: c_int)
fn set_auto_lock_disabled(&self) -> unsafe extern "C" fn(disable: c_int)
Equivalent to
sys::ffi::playdate_sys::setAutoLockDisabledSource§fn get_reduce_flashing(&self) -> unsafe extern "C" fn() -> c_int
fn get_reduce_flashing(&self) -> unsafe extern "C" fn() -> c_int
Equivalent to
sys::ffi::playdate_sys::getReduceFlashingSource§fn get_elapsed_time(&self) -> unsafe extern "C" fn() -> c_float
fn get_elapsed_time(&self) -> unsafe extern "C" fn() -> c_float
Equivalent to
sys::ffi::playdate_sys::getElapsedTimeSource§fn reset_elapsed_time(&self) -> unsafe extern "C" fn()
fn reset_elapsed_time(&self) -> unsafe extern "C" fn()
Equivalent to
sys::ffi::playdate_sys::resetElapsedTimeSource§fn get_battery_percentage(&self) -> unsafe extern "C" fn() -> c_float
fn get_battery_percentage(&self) -> unsafe extern "C" fn() -> c_float
Equivalent to
sys::ffi::playdate_sys::getBatteryPercentageSource§fn get_battery_voltage(&self) -> unsafe extern "C" fn() -> c_float
fn get_battery_voltage(&self) -> unsafe extern "C" fn() -> c_float
Equivalent to
sys::ffi::playdate_sys::getBatteryVoltageSource§fn get_timezone_offset(&self) -> unsafe extern "C" fn() -> i32
fn get_timezone_offset(&self) -> unsafe extern "C" fn() -> i32
Equivalent to
sys::ffi::playdate_sys::getTimezoneOffsetSource§fn should_display_24_hour_time(&self) -> unsafe extern "C" fn() -> c_int
fn should_display_24_hour_time(&self) -> unsafe extern "C" fn() -> c_int
Equivalent to
sys::ffi::playdate_sys::shouldDisplay24HourTimeSource§fn convert_epoch_to_date_time(
&self,
) -> unsafe extern "C" fn(epoch: u32, datetime: *mut PDDateTime)
fn convert_epoch_to_date_time( &self, ) -> unsafe extern "C" fn(epoch: u32, datetime: *mut PDDateTime)
Equivalent to
sys::ffi::playdate_sys::convertEpochToDateTimeSource§fn convert_date_time_to_epoch(
&self,
) -> unsafe extern "C" fn(datetime: *mut PDDateTime) -> u32
fn convert_date_time_to_epoch( &self, ) -> unsafe extern "C" fn(datetime: *mut PDDateTime) -> u32
Equivalent to
sys::ffi::playdate_sys::convertDateTimeToEpochSource§fn set_serial_message_callback(
&self,
) -> unsafe extern "C" fn(callback: FnSerialMessageCallback)
fn set_serial_message_callback( &self, ) -> unsafe extern "C" fn(callback: FnSerialMessageCallback)
Equivalent to
sys::ffi::playdate_sys::setSerialMessageCallbackimpl Copy for Default
Auto Trait Implementations§
impl Freeze for Default
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§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