FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    LayoutHelperScene

    struct · ferroui-designer-tools · v0.5.0

    struct LayoutHelperScene
    

    View source

    Members

    panel

    panel: ferroui_designer_core::NodeId
    

    Source

    title

    title: String
    

    Source

    primitives

    primitives: Vec<LayoutGuide>
    

    Source

    handles

    handles: Vec<LayoutHandle>
    

    Source

    placement

    placement: Option<LayoutPlacement>
    

    Source

    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.

    Source

    generic

    fn generic(context: &LayoutContext<'_>, request: &LayoutHelperRequest) -> Result<Self>
    

    Source

    validate

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

    Source

    line

    fn line(self: &mut Self, start: Point, end: Point, role: LayoutGuideRole)
    

    Source

    rectangle

    fn rectangle(self: &mut Self, bounds: Rect, role: LayoutGuideRole, filled: bool)
    

    Source

    label

    fn label(self: &mut Self, position: Point, text: impl Into<String>, role: LayoutGuideRole)
    

    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
    • DeserializeOwned
    • Clone
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Serialize
    • Deserialize<'de>

    Availability

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