Skip to main content

matrix_gui/
lib.rs

1#![cfg_attr(not(test), no_std)]
2#![allow(clippy::needless_doctest_main)]
3#![allow(clippy::doc_nested_refdefs)]
4#![cfg_attr(not(doctest), doc = include_str!("../README.md"))]
5
6pub mod animation;
7pub mod fill_rect;
8pub mod helper;
9pub mod i18n;
10pub mod prelude;
11pub mod region;
12pub mod style;
13pub mod ui;
14pub mod widget_state;
15pub mod widgets;
16
17#[cfg(feature = "focus")]
18pub mod focus;
19
20#[cfg(feature = "framebuffer")]
21pub mod framebuf;
22
23#[cfg(feature = "popup")]
24pub mod modal;
25
26pub mod ui_font {
27    pub type UiFont<'a> = multi_mono_font::MultiMonoFontList<'a>;
28    pub type UiTextStyle<'a, C> = multi_mono_font::MultiMonoTextStyle<'a, C>;
29
30    pub const DEFAULT_FONT_LATIN_6: UiFont = &[&multi_mono_font::ascii::FONT_10X20];
31    pub const DEFAULT_FONT_ASCII: UiFont = &[&multi_mono_font::ascii::FONT_9X15];
32}