Skip to main content

IndicationDrawNode

Trait IndicationDrawNode 

Source
pub trait IndicationDrawNode {
    // Required method
    fn draw(&self, scene: &mut Scene, rect: Rect, radius: [f32; 4], alpha: f32);
}
Expand description

A drawable indication node. The layout engine calls draw() during the paint pass to emit scene nodes for visual feedback (ripple, overlay, focus ring).

Required Methods§

Source

fn draw(&self, scene: &mut Scene, rect: Rect, radius: [f32; 4], alpha: f32)

Draw the indication into scene at the given rect (in physical pixels). radius is the component’s corner radii (px) for shape-matched overlays. alpha is the accumulated compositing alpha from ancestor modifiers.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§