Port iced_tiny_skia to new layering architecture
This commit is contained in:
parent
2c6fd9ac14
commit
6ad5bb3597
28 changed files with 1948 additions and 1935 deletions
|
|
@ -7,16 +7,14 @@ use crate::{
|
|||
Background, Color, Font, Pixels, Point, Rectangle, Size, Transformation,
|
||||
};
|
||||
|
||||
use std::borrow::Cow;
|
||||
|
||||
impl Renderer for () {
|
||||
fn start_layer(&mut self, _bounds: Rectangle) {}
|
||||
|
||||
fn end_layer(&mut self, _bounds: Rectangle) {}
|
||||
fn end_layer(&mut self) {}
|
||||
|
||||
fn start_transformation(&mut self, _transformation: Transformation) {}
|
||||
|
||||
fn end_transformation(&mut self, _transformation: Transformation) {}
|
||||
fn end_transformation(&mut self) {}
|
||||
|
||||
fn clear(&mut self) {}
|
||||
|
||||
|
|
@ -45,8 +43,6 @@ impl text::Renderer for () {
|
|||
Pixels(16.0)
|
||||
}
|
||||
|
||||
fn load_font(&mut self, _font: Cow<'static, [u8]>) {}
|
||||
|
||||
fn fill_paragraph(
|
||||
&mut self,
|
||||
_paragraph: &Self::Paragraph,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue