Struct playdate_rs::video::Video
source · pub struct Video { /* private fields */ }Implementations§
source§impl Video
impl Video
sourcepub fn load(&self, path: impl AsRef<str>) -> Result<VideoPlayer, String>
pub fn load(&self, path: impl AsRef<str>) -> Result<VideoPlayer, String>
Opens the pdv file at path and returns a new video player object for rendering its frames.
sourcepub fn use_screen_context(&self, player: &VideoPlayer)
pub fn use_screen_context(&self, player: &VideoPlayer)
Sets the rendering destination for the video player to the screen.
Auto Trait Implementations§
impl RefUnwindSafe for Video
impl !Send for Video
impl !Sync for Video
impl Unpin for Video
impl UnwindSafe for 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