CanvasGuideSettings
struct · ferroui-designer · v0.5.0
struct CanvasGuideSettings
Members
rulers_visibleguides_visiblegrid_visiblesnap_to_gridsnap_to_guidessnap_to_objectsgrid_spacingsnap_tolerancesmall_nudgelarge_nudgeguidesMAX_GUIDESMAX_POSITIONvalidatevalidate_positionadd
rulers_visible
rulers_visible: bool
guides_visible
guides_visible: bool
grid_visible
grid_visible: bool
snap_to_grid
snap_to_grid: bool
snap_to_guides
snap_to_guides: bool
snap_to_objects
snap_to_objects: bool
grid_spacing
grid_spacing: f64
snap_tolerance
snap_tolerance: f64
Screen logical pixels, independent of the canvas zoom.
small_nudge
small_nudge: f64
large_nudge
large_nudge: f64
guides
guides: Vec<CanvasGuide>
MAX_GUIDES
const MAX_GUIDES: usize
MAX_POSITION
const MAX_POSITION: f64
validate
fn validate(self: &Self) -> Result<(), String>
validate_position
fn validate_position(position: f64) -> Result<(), String>
add
fn add(self: &mut Self, axis: CanvasGuideAxis, position: f64) -> Result<u64, String>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedPropertyValueAnyValueClassDefaultsDeserializeOwnedErasedDestructorIntoEitherSameTreeModelCloneDebugStructuralPartialEqPartialEqSerializeDeserialize<'de>Default
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.