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