FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    LayoutHelperSnapshot

    struct · ferroui-designer · v0.5.0

    struct LayoutHelperSnapshot
    

    Portable panel-local helper geometry and its measured affine mapping to the artboard. Renderers transform vertices explicitly so their pens, labels and hit targets can stay constant in screen space under zoom, rotation, reflection and shear.

    View source

    Members

    scene

    scene: ferroui_designer_tools::LayoutHelperScene
    

    Source

    to_artboard

    to_artboard: ferroui_designer_tools::Affine
    

    Source

    new

    fn new(scene: LayoutHelperScene, to_artboard: Affine) -> Self
    

    Construct a render-only snapshot for a standalone host. Session-created snapshots additionally carry a private source identity used for authoring helper gestures.

    Source

    is_current

    fn is_current(self: &Self, session: &DesignerSession) -> bool
    

    Source

    handle_delta_to_artboard

    fn handle_delta_to_artboard(self: &Self, handle_index: usize, delta: LayoutPoint) -> Result<LayoutPoint, String>
    

    Convert a logical handle adjustment into artboard displacement. Child margin grips can live inside an internally scaled presenter with units unlike the outer panel.

    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
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Same
    • Clone
    • Debug

    Availability

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