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;
12pub mod framework_shaders;
13mod geometry;
14mod image;
15pub mod liquid_glass;
16pub mod render_effect;
17mod render_hash;
18mod shadow;
19mod typography;
20mod unit;
21mod vector_path;
22
23pub use alpha_mask::*;
24pub use brush::*;
25pub use color::*;
26pub use geometry::*;
27pub use image::*;
28pub use liquid_glass::*;
29pub use render_effect::*;
30pub use render_hash::*;
31pub use shadow::*;
32pub use typography::*;
33pub use unit::*;
34pub use vector_path::*;
35
36pub mod prelude {
37    pub use crate::brush::Brush;
38    pub use crate::color::Color;
39    pub use crate::geometry::{CornerRadii, EdgeInsets, Point, Rect, RoundedCornerShape, Size};
40    pub use crate::image::{ColorFilter, ImageBitmap, ImageBitmapError, ImageSampling};
41    pub use crate::unit::{Dp, Sp};
42    pub use crate::vector_path::{PathFillRule, SvgPathError, VectorPath};
43}