Skip to main content

ClipPainter

Trait ClipPainter 

Source
pub trait ClipPainter {
    // Required method
    fn paint(&mut self, painter: &Painter, clip: &ClipPaint<'_>);
}
Expand description

How an application draws its clips’ content: a video’s thumbnails, an audio waveform, a data plot. The timeline draws a clip’s box, its selection and its trimming handles; the painter what is inside, clipped to the clip.

Required Methods§

Source

fn paint(&mut self, painter: &Painter, clip: &ClipPaint<'_>)

Draws clip with painter (clipped to the clip in view).

Implementors§

Source§

impl ClipPainter for PlainClips

Source§

impl<F: FnMut(&Painter, &ClipPaint<'_>)> ClipPainter for F