Skip to main content

IndicationDrawNode

Trait IndicationDrawNode 

Source
pub trait IndicationDrawNode {
    // Required method
    fn draw(&self, scene: &mut Scene, rect: Rect, 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, alpha: f32)

Draw the indication into scene at the given rect (in physical pixels). 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§