FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SnapSettings

    struct · ferroui-designer-tools · v0.5.0

    struct SnapSettings
    

    View source

    Members

    grid

    grid: Option<f64>
    

    Source

    tolerance

    tolerance: f64
    

    Source

    guides_x

    guides_x: Vec<f64>
    

    Source

    guides_y

    guides_y: Vec<f64>
    

    Source

    prepare

    fn prepare(self: &Self, others: &[Rect]) -> Result<SnapIndex>
    

    Source

    snap

    fn snap(self: &Self, moving: Rect, others: &[Rect]) -> Result<SnapResult>
    

    All geometry is in document units. Convert a desired screen tolerance by the zoom factor.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • DeserializeOwned
    • Clone
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Serialize
    • Deserialize<'de>
    • Default

    Availability

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