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
sourceimpl Clone for playdate_video
impl Clone for playdate_video
sourcefn clone(&self) -> playdate_video
fn clone(&self) -> playdate_video
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_video
impl Debug for playdate_video
sourceimpl Default for playdate_video
impl Default for playdate_video
sourcefn default() -> playdate_video
fn default() -> playdate_video
Returns the “default value” for a type. Read more
sourceimpl PartialEq<playdate_video> for playdate_video
impl PartialEq<playdate_video> for playdate_video
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &playdate_video) -> bool
fn ne(&self, other: &playdate_video) -> bool
This method tests for !=
.
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
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