LayoutAdapter
trait · ferroui-designer-tools · v0.5.0
trait LayoutAdapter
Third-party panels register source planners, with the same transactional validation as built-ins.
Members
panel_type
fn panel_type(self: &Self) -> &str
capabilities
fn capabilities(self: &Self) -> LayoutCapabilities
panel_properties
fn panel_properties(self: &Self) -> &[&str]
plan
fn plan(self: &Self, context: &LayoutContext<'_>, action: &LayoutAction) -> Result<Vec<Edit>>
design_helpers
fn design_helpers(self: &Self, context: &LayoutContext<'_>, request: &LayoutHelperRequest) -> Result<LayoutHelperScene>
Optional design-time feature provider. The default draws only a generic container outline.
placement
fn placement(self: &Self, _context: &LayoutContext<'_>, _panel: NodeId, _position: Point, _dragged: &[NodeId]) -> Result<Option<LayoutPlacement>>
Optional semantic placement provider. Indices always reference the original AST snapshot.
plan_helper
fn plan_helper(self: &Self, context: &LayoutContext<'_>, action: &LayoutHandleAction, value: f64) -> Result<Vec<Edit>>
Override to implement Custom helper intents. Standard actions share existing source planners.
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.