diff options
author | 2019-09-04 11:09:57 +0200 | |
---|---|---|
committer | 2019-09-04 11:09:57 +0200 | |
commit | c583a2174d28878a6b1a31288e80b96fac62e799 (patch) | |
tree | 36c80d9a0565980d6bbee62c548c8db142555ba2 /examples/ggez/widget.rs | |
parent | 2c35103035e47485f2fb049f86b3c00feb4b99d2 (diff) | |
download | iced-c583a2174d28878a6b1a31288e80b96fac62e799.tar.gz iced-c583a2174d28878a6b1a31288e80b96fac62e799.tar.bz2 iced-c583a2174d28878a6b1a31288e80b96fac62e799.zip |
Improve tour example
Diffstat (limited to '')
-rw-r--r-- | examples/ggez/widget.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/ggez/widget.rs b/examples/ggez/widget.rs index a5fcccc6..9a141c83 100644 --- a/examples/ggez/widget.rs +++ b/examples/ggez/widget.rs @@ -1,12 +1,13 @@ use super::Renderer; -use ggez::graphics::Color; +use ggez::graphics::{self, Color}; pub use iced::{button, slider, Button, Slider}; pub type Text = iced::Text<Color>; pub type Checkbox<Message> = iced::Checkbox<Color, Message>; pub type Radio<Message> = iced::Radio<Color, Message>; +pub type Image = iced::Image<graphics::Image>; pub type Column<'a, Message> = iced::Column<'a, Message, Renderer<'a>>; pub type Row<'a, Message> = iced::Row<'a, Message, Renderer<'a>>; |