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#![deny(unsafe_code)]
7#![allow(non_snake_case)]
8
9pub mod alpha_mask;
10mod brush;
11mod color;
12mod geometry;
13mod image;
14pub mod liquid_glass;
15pub mod render_effect;
16mod render_hash;
17mod shadow;
18mod typography;
19mod unit;
20
21pub use alpha_mask::*;
22pub use brush::*;
23pub use color::*;
24pub use geometry::*;
25pub use image::*;
26pub use liquid_glass::*;
27pub use render_effect::*;
28pub use render_hash::*;
29pub use shadow::*;
30pub use typography::*;
31pub use unit::*;
32
33pub mod prelude {
34    pub use crate::brush::Brush;
35    pub use crate::color::Color;
36    pub use crate::geometry::{CornerRadii, EdgeInsets, Point, Rect, RoundedCornerShape, Size};
37    pub use crate::image::{ColorFilter, ImageBitmap, ImageBitmapError, ImageSampling};
38    pub use crate::unit::{Dp, Sp};
39}