Skip to main content

cranpose_ui_graphics/
lib.rs

1//! Pure math/data for drawing & units in Cranpose
2//!
3//! This crate contains geometry primitives, color definitions, brushes,
4//! and unit types that are used throughout the Cranpose framework.
5
6#![allow(non_snake_case)]
7
8pub mod alpha_mask;
9mod brush;
10mod color;
11mod geometry;
12mod image;
13pub mod liquid_glass;
14pub mod render_effect;
15mod shadow;
16mod typography;
17mod unit;
18
19pub use alpha_mask::*;
20pub use brush::*;
21pub use color::*;
22pub use geometry::*;
23pub use image::*;
24pub use liquid_glass::*;
25pub use render_effect::*;
26pub use shadow::*;
27pub use typography::*;
28pub use unit::*;
29
30pub mod prelude {
31    pub use crate::brush::Brush;
32    pub use crate::color::Color;
33    pub use crate::geometry::{CornerRadii, EdgeInsets, Point, Rect, RoundedCornerShape, Size};
34    pub use crate::image::{ColorFilter, ImageBitmap, ImageBitmapError};
35    pub use crate::unit::{Dp, Sp};
36}