More work towards getting native widget with the femtovg backend

This commit is contained in:
Olivier Goffart 2021-01-05 13:02:52 +01:00 committed by Simon Hausmann
parent 7643174f28
commit b157648ab2
4 changed files with 40 additions and 14 deletions

View file

@ -48,7 +48,7 @@ pub use self::image::*;
pub trait RawRenderer {
/// Draw a pixmap in position indicated by the `pos`.
/// The data must be argb pixels of size width x height.
fn draw_pixmap(&mut self, pos: Point, width: u32, height: u32, data: &[u32]);
fn draw_pixmap(&mut self, pos: Point, width: u32, height: u32, data: &[u8]);
/// Returns the scale factor
fn scale_factor(&self) -> f32;