pub struct UserDataEvent {
pub part_index: u32,
pub part_name: String,
pub frame_no: u32,
pub source: u32,
pub integer: Option<i32>,
pub rect: Option<[f32; 4]>,
pub point: Option<[f32; 2]>,
pub text: Option<String>,
}Expand description
A “User Data” marker: up to four optional values, in whatever combination
the animator filled in. A field is None when it was left unset — which is
not the same as zero, and is why these are options rather than defaults.
Fields§
§part_index: u32§part_name: StringThe part’s name as authored, or empty when the pack has none for it.
frame_no: u32The frame the key is authored on, which is not necessarily the frame it was noticed on: one update can step across several and reports every key in between.
source: u32The source that fired it — see SsEvent::source.
integer: Option<i32>§rect: Option<[f32; 4]>[left, top, right, bottom] as authored — four edges, not origin+size.
point: Option<[f32; 2]>§text: Option<String>Trait Implementations§
Source§impl Clone for UserDataEvent
impl Clone for UserDataEvent
Source§impl Debug for UserDataEvent
impl Debug for UserDataEvent
Source§impl Default for UserDataEvent
impl Default for UserDataEvent
Source§impl PartialEq for UserDataEvent
impl PartialEq for UserDataEvent
impl StructuralPartialEq for UserDataEvent
Auto Trait Implementations§
impl Freeze for UserDataEvent
impl RefUnwindSafe for UserDataEvent
impl Send for UserDataEvent
impl Sync for UserDataEvent
impl Unpin for UserDataEvent
impl UnsafeUnpin for UserDataEvent
impl UnwindSafe for UserDataEvent
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