1 | /*! |
2 | The style for shapes and text, font, color, etc. |
3 | */ |
4 | mod color; |
5 | pub mod colors; |
6 | mod font; |
7 | mod palette; |
8 | mod shape; |
9 | mod size; |
10 | mod text; |
11 | |
12 | /// Definitions of palettes of accessibility |
13 | pub use self::palette::*; |
14 | pub use color::{Color, HSLColor, PaletteColor, RGBAColor, RGBColor}; |
15 | pub use colors::{BLACK, BLUE, CYAN, GREEN, MAGENTA, RED, TRANSPARENT, WHITE, YELLOW}; |
16 | |
17 | #[cfg (feature = "full_palette" )] |
18 | #[cfg_attr (doc_cfg, doc(cfg(feature = "full_palette" )))] |
19 | pub use colors::full_palette; |
20 | |
21 | #[cfg (all(not(target_arch = "wasm32" ), feature = "ab_glyph" ))] |
22 | pub use font::register_font; |
23 | pub use font::{ |
24 | FontDesc, FontError, FontFamily, FontResult, FontStyle, FontTransform, IntoFont, LayoutBox, |
25 | }; |
26 | |
27 | pub use shape::ShapeStyle; |
28 | pub use size::{AsRelative, RelativeSize, SizeDesc}; |
29 | pub use text::text_anchor; |
30 | pub use text::{IntoTextStyle, TextStyle}; |
31 | |