pub struct ClickEvent {
pub frame: Frame,
pub x: f32,
pub y: f32,
}Expand description
A click captured during recording: a project frame plus a normalized
position in the composed frame ((0, 0) top-left, (1, 1) bottom-right).
Serialize/Deserialize so a captured click log persists in the project
document — it feeds both auto-zoom (ED.17) and the cursor click-ripple
overlay (ED.19).
Fields§
§frame: FrameProject frame the click occurred at.
x: f32Horizontal position, 0.0..=1.0.
y: f32Vertical position, 0.0..=1.0.
Implementations§
Trait Implementations§
Source§impl Clone for ClickEvent
impl Clone for ClickEvent
Source§fn clone(&self) -> ClickEvent
fn clone(&self) -> ClickEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ClickEvent
impl Debug for ClickEvent
Source§impl<'de> Deserialize<'de> for ClickEvent
impl<'de> Deserialize<'de> for ClickEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ClickEvent
impl PartialEq for ClickEvent
Source§fn eq(&self, other: &ClickEvent) -> bool
fn eq(&self, other: &ClickEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ClickEvent
impl Serialize for ClickEvent
impl Copy for ClickEvent
impl StructuralPartialEq for ClickEvent
Auto Trait Implementations§
impl Freeze for ClickEvent
impl RefUnwindSafe for ClickEvent
impl Send for ClickEvent
impl Sync for ClickEvent
impl Unpin for ClickEvent
impl UnsafeUnpin for ClickEvent
impl UnwindSafe for ClickEvent
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