pub struct ObjectMovieState {Show 16 fields
pub loop_flag: bool,
pub auto_free_flag: bool,
pub real_time_flag: bool,
pub pause_flag: bool,
pub timer_ms: u64,
pub total_ms: Option<u64>,
pub playing: bool,
pub last_tick: Option<Instant>,
pub last_frame_idx: Option<usize>,
pub audio_id: Option<u64>,
pub audio_started_once: bool,
pub frame_image_ids: [Option<ImageId>; 2],
pub frame_image_cursor: usize,
pub just_finished: bool,
pub just_looped: bool,
pub seeked: bool,
}Fields§
§loop_flag: bool§auto_free_flag: bool§real_time_flag: bool§pause_flag: bool§timer_ms: u64Current playback timer in milliseconds (the original implementation: m_omv_timer).
total_ms: Option<u64>Total movie time in milliseconds if known.
playing: bool§last_tick: Option<Instant>§last_frame_idx: Option<usize>§audio_id: Option<u64>§audio_started_once: bool§frame_image_ids: [Option<ImageId>; 2]§frame_image_cursor: usize§just_finished: bool§just_looped: bool§seeked: boolImplementations§
Source§impl ObjectMovieState
impl ObjectMovieState
pub fn reset(&mut self)
pub fn start( &mut self, total_ms: Option<u64>, loop_flag: bool, auto_free_flag: bool, real_time_flag: bool, ready_only: bool, )
pub fn tick(&mut self, past_game_time: i32, past_real_time: i32)
pub fn seek(&mut self, time_ms: u64)
pub fn get_seek_time(&self) -> u64
pub fn check_movie(&self) -> bool
Trait Implementations§
Source§impl Clone for ObjectMovieState
impl Clone for ObjectMovieState
Source§fn clone(&self) -> ObjectMovieState
fn clone(&self) -> ObjectMovieState
Returns a duplicate 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 ObjectMovieState
impl Debug for ObjectMovieState
Auto Trait Implementations§
impl Freeze for ObjectMovieState
impl RefUnwindSafe for ObjectMovieState
impl Send for ObjectMovieState
impl Sync for ObjectMovieState
impl Unpin for ObjectMovieState
impl UnsafeUnpin for ObjectMovieState
impl UnwindSafe for ObjectMovieState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.