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
8mod brush;
9mod color;
10mod geometry;
11mod image;
12mod typography;
13mod unit;
14
15pub use brush::*;
16pub use color::*;
17pub use geometry::*;
18pub use image::*;
19pub use typography::*;
20pub use unit::*;
21
22pub mod prelude {
23    pub use crate::brush::Brush;
24    pub use crate::color::Color;
25    pub use crate::geometry::{CornerRadii, EdgeInsets, Point, Rect, RoundedCornerShape, Size};
26    pub use crate::image::{ColorFilter, ImageBitmap, ImageBitmapError};
27    pub use crate::unit::{Dp, Sp};
28}