FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    MoveGesture

    struct · ferroui-designer-tools · v0.5.0

    struct MoveGesture
    

    An immutable drag start snapshot. Preview is pure geometry; commit refuses to apply a stale gesture after source or collaboration edits have changed the authored revision.

    View source

    Members

    begin

    fn begin(document: &Document, nodes: &[NodeId], measurements: &BTreeMap<NodeId, Rect>, start: Point, snap: SnapSettings) -> Result<Self>
    

    Source

    preview

    fn preview(self: &Self, pointer: Point) -> Result<SnapResult>
    

    Source

    commit

    fn commit(self: &Self, context: &LayoutContext<'_>, registry: &LayoutRegistry, pointer: Point) -> Result<Vec<Edit>>
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.