Skip to main content

Paint

Trait Paint 

Source
pub trait Paint<T>: Context {
    // Required method
    fn paint(&mut self, area: Rect<Self::Scalar>, command: &T);
}
Expand description

accepts one kind of drawing operation in frame coordinates

Required Methods§

Source

fn paint(&mut self, area: Rect<Self::Scalar>, command: &T)

area supplies placement and dimensions while the operation defines any outsets

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§