SnapSettings
struct · ferroui-designer-tools · v0.5.0
struct SnapSettings
Members
grid
grid: Option<f64>
tolerance
tolerance: f64
guides_x
guides_x: Vec<f64>
guides_y
guides_y: Vec<f64>
prepare
fn prepare(self: &Self, others: &[Rect]) -> Result<SnapIndex>
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedDeserializeOwnedCloneDebugStructuralPartialEqPartialEqSerializeDeserialize<'de>Default
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.