Struct crankstart_sys::playdate_video
source · #[repr(C)]pub struct playdate_video {
pub loadVideo: Option<unsafe extern "C" fn(path: *const c_char) -> *mut LCDVideoPlayer>,
pub freePlayer: Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer)>,
pub setContext: Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer, context: *mut LCDBitmap) -> c_int>,
pub useScreenContext: Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer)>,
pub renderFrame: Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer, n: c_int) -> c_int>,
pub getError: Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer) -> *const c_char>,
pub getInfo: Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer, outWidth: *mut c_int, outHeight: *mut c_int, outFrameRate: *mut f32, outFrameCount: *mut c_int, outCurrentFrame: *mut c_int)>,
pub getContext: Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer) -> *mut LCDBitmap>,
}
Fields§
§loadVideo: Option<unsafe extern "C" fn(path: *const c_char) -> *mut LCDVideoPlayer>
§freePlayer: Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer)>
§setContext: Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer, context: *mut LCDBitmap) -> c_int>
§useScreenContext: Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer)>
§renderFrame: Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer, n: c_int) -> c_int>
§getError: Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer) -> *const c_char>
§getInfo: Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer, outWidth: *mut c_int, outHeight: *mut c_int, outFrameRate: *mut f32, outFrameCount: *mut c_int, outCurrentFrame: *mut c_int)>
§getContext: Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer) -> *mut LCDBitmap>
Trait Implementations§
source§impl Clone for playdate_video
impl Clone for playdate_video
source§fn clone(&self) -> playdate_video
fn clone(&self) -> playdate_video
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_video
impl Debug for playdate_video
source§impl Default for playdate_video
impl Default for playdate_video
source§fn default() -> playdate_video
fn default() -> playdate_video
Returns the “default value” for a type. Read more
source§impl PartialEq<playdate_video> for playdate_video
impl PartialEq<playdate_video> for playdate_video
source§fn eq(&self, other: &playdate_video) -> bool
fn eq(&self, other: &playdate_video) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for playdate_video
impl Eq for playdate_video
impl StructuralEq for playdate_video
impl StructuralPartialEq for playdate_video
Auto Trait Implementations§
impl RefUnwindSafe for playdate_video
impl Send for playdate_video
impl Sync for playdate_video
impl Unpin for playdate_video
impl UnwindSafe for playdate_video
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