iced_wgpu 0.2.0

A wgpu renderer for Iced
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::canvas::Frame;

/// A type that can be drawn on a [`Frame`].
///
/// [`Frame`]: struct.Frame.html
pub trait Drawable {
    /// Draws the [`Drawable`] on the given [`Frame`].
    ///
    /// [`Drawable`]: trait.Drawable.html
    /// [`Frame`]: struct.Frame.html
    fn draw(&self, frame: &mut Frame);
}