#![allow(
clippy::too_many_arguments,
clippy::let_and_return,
clippy::from_over_into,
clippy::if_same_then_else,
clippy::float_cmp,
clippy::collapsible_if,
clippy::derivable_impls, // for custom default structs
clippy::type_complexity,
clippy::borrowed_box,
clippy::module_inception,
clippy::let_unit_value,
clippy::map_entry,
)]
#![feature(async_closure)]
#![feature(const_type_id)]
#![feature(box_syntax)]
#![feature(default_free_fn)]
#![doc(html_logo_url = "https://dudochkin-victor.github.io/assets/ux-components/logo.svg")]
#![allow(unused_variables)]
// pub use animate::*;
pub mod animation;
pub mod elements;
pub mod foundation;
pub mod gestures;
pub mod material;
pub mod painting;
pub mod rendering;
pub mod rx;
pub mod services;
pub mod ui;
pub mod widgets;
pub mod engine {
pub use dx::engine::*;
}
pub mod platform {
pub use dx::platform::*;
}
pub mod winit {
pub use dx::winit::*;
}
// #[doc(hidden)]
pub mod prelude {
// pub use super::AppBarExt;
// pub use super::BackdropExt;
// pub use super::BannerExt;
// pub use super::ButtonExt;
// pub use super::CardExt;
// pub use super::CheckboxExt;
// pub use super::ChipExt;
// pub use super::CircularProgressExt;
// pub use super::DataTableExt;
// pub use super::DatePickerExt;
// pub use super::DialogExt;
// pub use super::DividerExt;
// pub use super::DrawerExt;
// pub use super::FabExt;
// pub use super::FormfieldExt;
// pub use super::IconButtonExt;
// pub use super::ImageListExt;
// pub use super::LinearProgressExt;
// pub use super::ListExt;
// pub use super::MenuExt;
// pub use super::RadioExt;
// pub use super::SheetExt;
// pub use super::SliderExt;
// pub use super::SnackbarExt;
// pub use super::SurfaceExt;
// pub use super::SwitchExt;
// pub use super::TabExt;
// pub use super::TextareaExt;
// pub use super::TextfieldExt;
// pub use super::TimePickerExt;
// pub use super::TooltipExt;
// pub use super::WidgetExt;
// pub use super::WindowExt;
// pub use dx;
// pub use animate::prelude::*;
pub use dx::prelude::*;
pub use ux_macro::*;
// pub mod application {
// pub use animate::{init, quit, run};
// }
pub use super::Opacity;
pub trait OnDemand<T> {
fn get(&mut self) -> &T;
}
}
pub trait Opacity {
fn opacity(&self, val: u8) -> Self;
}
impl Opacity for foundation::colorspace::Color {
fn opacity(&self, val: u8) -> Self {
use self::foundation::colorspace::RgbColor;
let color = *self;
let RgbColor { red, green, blue } = color.into();
Self::rgba(red, green, blue, val)
}
}
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}