diff options
author | 2023-02-25 15:38:25 +0100 | |
---|---|---|
committer | 2023-02-25 15:38:25 +0100 | |
commit | 8c373cd497e370d356b480380482779397bdb510 (patch) | |
tree | f640a1161e702cbb981d3b89f3e7a11ee390923c /tiny_skia/src/lib.rs | |
parent | a01bc865a0561ff1daf255c4746746acf67524f0 (diff) | |
download | iced-8c373cd497e370d356b480380482779397bdb510.tar.gz iced-8c373cd497e370d356b480380482779397bdb510.tar.bz2 iced-8c373cd497e370d356b480380482779397bdb510.zip |
Scaffold `iced_tiny_skia` and connect it to `iced_renderer`
Diffstat (limited to 'tiny_skia/src/lib.rs')
-rw-r--r-- | tiny_skia/src/lib.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tiny_skia/src/lib.rs b/tiny_skia/src/lib.rs new file mode 100644 index 00000000..fce44e9e --- /dev/null +++ b/tiny_skia/src/lib.rs @@ -0,0 +1,16 @@ +pub mod window; + +mod backend; +mod settings; + +pub use backend::Backend; +pub use settings::Settings; + +pub use iced_graphics::{Color, Error, Font, Point, Size, Vector, Viewport}; + +/// A [`tiny-skia`] graphics renderer for [`iced`]. +/// +/// [`tiny-skia`]: https://github.com/RazrFalcon/tiny-skia +/// [`iced`]: https://github.com/iced-rs/iced +pub type Renderer<Theme = iced_native::Theme> = + iced_graphics::Renderer<Backend, Theme>; |