#[repr(C)]pub struct miracle_plugin_animation_frame_data_t {
pub type_: u32,
pub runtime_seconds: f32,
pub duration_seconds: f32,
pub origin: [f32; 4],
pub destination: [f32; 4],
pub opacity_start: f32,
pub opacity_end: f32,
}Fields§
§type_: u32Animation type.
This one of #miracle_animation_type.
runtime_seconds: f32The runtime of the animation frame in seconds.
duration_seconds: f32The total duration of the animation in seconds.
origin: [f32; 4]The origin area, packed with x, y, w, and h.
destination: [f32; 4]The destination area, packed with x, y, w, and h.
opacity_start: f32The opacity start of the animation.
opacity_end: f32The opacity end of the animation.
Trait Implementations§
Source§impl Clone for miracle_plugin_animation_frame_data_t
impl Clone for miracle_plugin_animation_frame_data_t
Source§fn clone(&self) -> miracle_plugin_animation_frame_data_t
fn clone(&self) -> miracle_plugin_animation_frame_data_t
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 Default for miracle_plugin_animation_frame_data_t
impl Default for miracle_plugin_animation_frame_data_t
Source§fn default() -> miracle_plugin_animation_frame_data_t
fn default() -> miracle_plugin_animation_frame_data_t
Returns the “default value” for a type. Read more
Source§impl From<miracle_plugin_animation_frame_data_t> for AnimationFrameData
impl From<miracle_plugin_animation_frame_data_t> for AnimationFrameData
Source§fn from(value: miracle_plugin_animation_frame_data_t) -> Self
fn from(value: miracle_plugin_animation_frame_data_t) -> Self
Converts to this type from the input type.
impl Copy for miracle_plugin_animation_frame_data_t
Auto Trait Implementations§
impl Freeze for miracle_plugin_animation_frame_data_t
impl RefUnwindSafe for miracle_plugin_animation_frame_data_t
impl Send for miracle_plugin_animation_frame_data_t
impl Sync for miracle_plugin_animation_frame_data_t
impl Unpin for miracle_plugin_animation_frame_data_t
impl UnsafeUnpin for miracle_plugin_animation_frame_data_t
impl UnwindSafe for miracle_plugin_animation_frame_data_t
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