30 lines
655 B
Rust
30 lines
655 B
Rust
pub mod widget;
|
|
pub mod window;
|
|
|
|
mod backend;
|
|
mod settings;
|
|
|
|
pub use iced_graphics::primitive;
|
|
|
|
pub use backend::Backend;
|
|
pub use primitive::Primitive;
|
|
pub use settings::Settings;
|
|
|
|
pub use iced_graphics::{
|
|
Antialiasing, Color, Error, Font, Point, Rectangle, Size, Vector, Viewport,
|
|
};
|
|
|
|
/// The default graphics renderer for [`iced`].
|
|
///
|
|
/// [`iced`]: https://github.com/iced-rs/iced
|
|
pub type Renderer<Theme = iced_native::Theme> =
|
|
iced_graphics::Renderer<Backend, Theme>;
|
|
|
|
#[derive(Debug, Clone)]
|
|
pub struct Geometry(pub(crate) Primitive);
|
|
|
|
impl From<Geometry> for Primitive {
|
|
fn from(geometry: Geometry) -> Self {
|
|
geometry.0
|
|
}
|
|
}
|