LayoutHelperScene
struct · ferroui-designer-tools · v0.5.0
struct LayoutHelperScene
Members
paneltitleprimitiveshandlesplacementappend_margin_helpersgenericvalidatelinerectanglelabel
panel
panel: ferroui_designer_core::NodeId
title
title: String
primitives
primitives: Vec<LayoutGuide>
handles
handles: Vec<LayoutHandle>
placement
placement: Option<LayoutPlacement>
append_margin_helpers
fn append_margin_helpers(self: &mut Self, context: &LayoutContext<'_>, node: NodeId) -> Result<()>
Append a direct child's margin guides in this context's measured coordinate space. Native hosts with transformed internal presenters can compose this small scene into the panel scene while retaining the child's authored units for handle gestures.
generic
fn generic(context: &LayoutContext<'_>, request: &LayoutHelperRequest) -> Result<Self>
validate
fn validate(self: &Self) -> Result<()>
line
fn line(self: &mut Self, start: Point, end: Point, role: LayoutGuideRole)
rectangle
fn rectangle(self: &mut Self, bounds: Rect, role: LayoutGuideRole, filled: bool)
label
fn label(self: &mut Self, position: Point, text: impl Into<String>, role: LayoutGuideRole)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedDeserializeOwnedCloneDebugStructuralPartialEqPartialEqSerializeDeserialize<'de>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.