Implement Canvas support for iced_tiny_skia
This commit is contained in:
parent
3f6e28fa9b
commit
5fd5d1cdf8
65 changed files with 1354 additions and 570 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use crate::{Font, Point, Size};
|
||||
use crate::{Font, Geometry, Point, Size};
|
||||
|
||||
use iced_graphics::backend;
|
||||
use iced_graphics::text;
|
||||
|
|
@ -12,6 +12,8 @@ pub enum Backend {
|
|||
}
|
||||
|
||||
impl iced_graphics::Backend for Backend {
|
||||
type Geometry = Geometry;
|
||||
|
||||
fn trim_measurements(&mut self) {
|
||||
match self {
|
||||
Self::Wgpu(backend) => backend.trim_measurements(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue