FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CanvasGuideSettings

    struct · ferroui-designer · v0.5.0

    struct CanvasGuideSettings
    

    View source

    Members

    rulers_visible

    rulers_visible: bool
    

    Source

    guides_visible

    guides_visible: bool
    

    Source

    grid_visible

    grid_visible: bool
    

    Source

    snap_to_grid

    snap_to_grid: bool
    

    Source

    snap_to_guides

    snap_to_guides: bool
    

    Source

    snap_to_objects

    snap_to_objects: bool
    

    Source

    grid_spacing

    grid_spacing: f64
    

    Source

    snap_tolerance

    snap_tolerance: f64
    

    Screen logical pixels, independent of the canvas zoom.

    Source

    small_nudge

    small_nudge: f64
    

    Source

    large_nudge

    large_nudge: f64
    

    Source

    guides

    guides: Vec<CanvasGuide>
    

    Source

    MAX_GUIDES

    const MAX_GUIDES: usize
    

    Source

    MAX_POSITION

    const MAX_POSITION: f64
    

    Source

    validate

    fn validate(self: &Self) -> Result<(), String>
    

    Source

    validate_position

    fn validate_position(position: f64) -> Result<(), String>
    

    Source

    add

    fn add(self: &mut Self, axis: CanvasGuideAxis, position: f64) -> Result<u64, String>
    

    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
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • DeserializeOwned
    • ErasedDestructor
    • IntoEither
    • Same
    • TreeModel
    • Clone
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Serialize
    • Deserialize<'de>
    • Default

    Availability

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