mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 22:31:14 +00:00
More work towards getting native widget with the femtovg backend
This commit is contained in:
parent
7643174f28
commit
b157648ab2
4 changed files with 40 additions and 14 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue