pub struct GlobalMovieState {Show 15 fields
pub file_name: Option<String>,
pub playing: bool,
pub key_skip_flag: bool,
pub timer_ms: u64,
pub total_ms: Option<u64>,
pub x: i32,
pub y: i32,
pub width: u32,
pub height: u32,
pub layer_id: Option<LayerId>,
pub sprite_id: Option<SpriteId>,
pub image_id: Option<ImageId>,
pub last_frame_idx: Option<usize>,
pub audio_id: Option<u64>,
pub audio_start_attempted: bool,
}Expand description
Runtime state for the GLOBAL.MOV player.
Original Siglus MOV is not a stage OBJECT; it is a full-screen/direct movie player. The WGPU port renders it through a dedicated LayerManager sprite so MOV.PLAY/WAIT/STOP still produce visible frames when stage objects are hidden.
Fields§
§file_name: Option<String>§playing: bool§key_skip_flag: bool§timer_ms: u64§total_ms: Option<u64>§x: i32§y: i32§width: u32§height: u32§layer_id: Option<LayerId>§sprite_id: Option<SpriteId>§image_id: Option<ImageId>§last_frame_idx: Option<usize>§audio_id: Option<u64>§audio_start_attempted: boolImplementations§
Trait Implementations§
Source§impl Clone for GlobalMovieState
impl Clone for GlobalMovieState
Source§fn clone(&self) -> GlobalMovieState
fn clone(&self) -> GlobalMovieState
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 GlobalMovieState
impl Debug for GlobalMovieState
Auto Trait Implementations§
impl Freeze for GlobalMovieState
impl RefUnwindSafe for GlobalMovieState
impl Send for GlobalMovieState
impl Sync for GlobalMovieState
impl Unpin for GlobalMovieState
impl UnsafeUnpin for GlobalMovieState
impl UnwindSafe for GlobalMovieState
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.