Skip to main content

PlacementModifierNode

Trait PlacementModifierNode 

Source
pub trait PlacementModifierNode:
    Send
    + Sync
    + 'static {
    // Required method
    fn transform_position(&self, position: PxPosition) -> PxPosition;

    // Provided method
    fn diagnostic_name(&self) -> &'static str { ... }
}
Expand description

A node-local placement modifier that transforms the current node position without affecting measured size.

Required Methods§

Source

fn transform_position(&self, position: PxPosition) -> PxPosition

Returns the transformed node position relative to the parent.

Provided Methods§

Source

fn diagnostic_name(&self) -> &'static str

Returns the concrete modifier name used by layout inspection.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§