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.
Members
scene
scene: ferroui_designer_tools::LayoutHelperScene
to_artboard
to_artboard: ferroui_designer_tools::Affine
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.
is_current
fn is_current(self: &Self, session: &DesignerSession) -> bool
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedClassDefaultsErasedDestructorIntoEitherSameCloneDebug
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.