pub struct CursorSample {
pub frame: Frame,
pub x: f32,
pub y: f32,
}Expand description
A cursor position sample at a project frame, normalized to the composed
frame ((0, 0) top-left, (1, 1) bottom-right — the same convention as
ClickEvent).
Captured by the macOS event tap during recording (ED.17, the app crate)
and consumed by the cursor overlay renderer (ED.19). The frame is a
project frame, so the overlay syncs to the playhead 1:1.
Fields§
§frame: FrameProject frame this position was sampled at.
x: f32Horizontal position, 0.0..=1.0.
y: f32Vertical position, 0.0..=1.0.
Implementations§
Trait Implementations§
Source§impl Clone for CursorSample
impl Clone for CursorSample
Source§fn clone(&self) -> CursorSample
fn clone(&self) -> CursorSample
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 CursorSample
impl Debug for CursorSample
Source§impl<'de> Deserialize<'de> for CursorSample
impl<'de> Deserialize<'de> for CursorSample
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 CursorSample
impl PartialEq for CursorSample
Source§fn eq(&self, other: &CursorSample) -> bool
fn eq(&self, other: &CursorSample) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CursorSample
impl Serialize for CursorSample
impl Copy for CursorSample
impl StructuralPartialEq for CursorSample
Auto Trait Implementations§
impl Freeze for CursorSample
impl RefUnwindSafe for CursorSample
impl Send for CursorSample
impl Sync for CursorSample
impl Unpin for CursorSample
impl UnsafeUnpin for CursorSample
impl UnwindSafe for CursorSample
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