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 fx_hash;
14mod geometry;
15mod gradient_blur;
16mod image;
17pub mod liquid_glass;
18mod record_replay;
19pub mod render_effect;
20mod render_hash;
21mod shadow;
22mod stroke;
23mod typography;
24mod unit;
25mod vector_path;
26
27pub use alpha_mask::*;
28pub use brush::*;
29pub use color::*;
30pub use fx_hash::*;
31pub use geometry::*;
32pub use gradient_blur::*;
33pub use image::*;
34pub use liquid_glass::*;
35pub use record_replay::*;
36pub use render_effect::*;
37pub use render_hash::*;
38pub use shadow::*;
39pub use stroke::*;
40pub use typography::*;
41pub use unit::*;
42pub use vector_path::*;
43
44pub mod prelude {
45    pub use crate::brush::Brush;
46    pub use crate::color::Color;
47    pub use crate::geometry::{CornerRadii, EdgeInsets, Point, Rect, RoundedCornerShape, Size};
48    pub use crate::image::{ColorFilter, ImageBitmap, ImageBitmapError, ImageSampling};
49    pub use crate::stroke::{ArcGeometry, Stroke, StrokeCap, StrokeJoin};
50    pub use crate::unit::{Dp, Sp};
51    pub use crate::vector_path::{PathFillRule, SvgPathError, VectorPath};
52}