diff options
author | 2019-09-19 15:01:12 +0200 | |
---|---|---|
committer | 2019-09-19 15:01:12 +0200 | |
commit | f9de39ddaa3020a9585b1648afb0ead45dfd7aa9 (patch) | |
tree | 04289787e353b4b059354d22ce53f2b79464431c /web/src | |
parent | dd093c79d7da84675be648c7df2ebfc85b5039f2 (diff) | |
download | iced-f9de39ddaa3020a9585b1648afb0ead45dfd7aa9.tar.gz iced-f9de39ddaa3020a9585b1648afb0ead45dfd7aa9.tar.bz2 iced-f9de39ddaa3020a9585b1648afb0ead45dfd7aa9.zip |
Unify `web` and `ggez` tour examples :tada:
Diffstat (limited to '')
-rw-r--r-- | src/color.rs (renamed from web/src/color.rs) | 3 | ||||
-rw-r--r-- | web/src/lib.rs | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/web/src/color.rs b/src/color.rs index 2624c3c9..5cc3a084 100644 --- a/web/src/color.rs +++ b/src/color.rs @@ -1,4 +1,6 @@ +/// A color in the sRGB color space. #[derive(Debug, Clone, Copy, PartialEq)] +#[allow(missing_docs)] pub struct Color { pub r: f32, pub g: f32, @@ -7,6 +9,7 @@ pub struct Color { } impl Color { + /// The black color. pub const BLACK: Color = Color { r: 0.0, g: 0.0, diff --git a/web/src/lib.rs b/web/src/lib.rs index 5a0dd6f2..a6dc2b79 100644 --- a/web/src/lib.rs +++ b/web/src/lib.rs @@ -3,14 +3,12 @@ use futures::Future; use std::cell::RefCell; mod bus; -mod color; mod element; mod widget; pub use bus::Bus; -pub use color::Color; pub use element::Element; -pub use iced::Align; +pub use iced::{Align, Color}; pub use widget::*; pub trait UserInterface { |