Unify web and ggez tour examples 🎉
This commit is contained in:
parent
dd093c79d7
commit
f9de39ddaa
40 changed files with 166 additions and 669 deletions
|
|
@ -1,16 +0,0 @@
|
|||
#[derive(Debug, Clone, Copy, PartialEq)]
|
||||
pub struct Color {
|
||||
pub r: f32,
|
||||
pub g: f32,
|
||||
pub b: f32,
|
||||
pub a: f32,
|
||||
}
|
||||
|
||||
impl Color {
|
||||
pub const BLACK: Color = Color {
|
||||
r: 0.0,
|
||||
g: 0.0,
|
||||
b: 0.0,
|
||||
a: 1.0,
|
||||
};
|
||||
}
|
||||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue