pub struct Painter {
pub width: usize,
pub height: usize,
pub pixels: Vec<u32>,
/* private fields */
}Expand description
Pixel buffer painter
Fields§
§width: usize§height: usize§pixels: Vec<u32>Implementations§
Source§impl Painter
impl Painter
Sourcepub fn paint(&mut self, display_list: &DisplayList)
pub fn paint(&mut self, display_list: &DisplayList)
Paint a display list
Sourcepub fn fill_rect(&mut self, color: u32, rect: &PixelRect)
pub fn fill_rect(&mut self, color: u32, rect: &PixelRect)
Fill a rectangle with a solid color (with alpha blending)