| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
pub mod bevel; |
| 24 |
pub mod connector; |
| 25 |
pub mod cursor; |
| 26 |
pub mod focus; |
| 27 |
pub mod geometry; |
| 28 |
pub mod help; |
| 29 |
pub mod input; |
| 30 |
pub mod keys; |
| 31 |
pub mod layout; |
| 32 |
pub mod selection; |
| 33 |
pub mod text; |
| 34 |
pub mod theme; |
| 35 |
pub mod widgets; |
| 36 |
|
| 37 |
pub use bevel::{Bevel, Elevation}; |
| 38 |
pub use connector::AlloyConnector; |
| 39 |
pub use cursor::Cursor; |
| 40 |
pub use focus::FocusRing; |
| 41 |
pub use geometry::{Gap, padding}; |
| 42 |
pub use help::{AlloyKeymap, Binding, KeyGroup, binding, unavailable}; |
| 43 |
pub use input::TextField; |
| 44 |
pub use keys::{Action, classify}; |
| 45 |
pub use layout::{ConsoleAreas, PaneAreas, console, panes}; |
| 46 |
pub use selection::{MARKER, selected_style}; |
| 47 |
pub use theme::{ |
| 48 |
Fidelity, Mode, Theme, ThemeError, border_strong, border_subtle, fidelity, mix_linear_srgb, |
| 49 |
}; |
| 50 |
pub use widgets::*; |
| 51 |
|
| 52 |
#[cfg(test)] |
| 53 |
mod tests { |
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
#[test] |
| 60 |
fn the_names_a_caller_is_told_to_use_are_exported_from_the_root() { |
| 61 |
let _: crate::Fidelity = crate::fidelity(); |
| 62 |
let _: fn(&makeover::ThemeColors) -> _ = crate::Theme::from_theme; |
| 63 |
let _: fn(makeover::Rgb, makeover::Rgb) -> _ = crate::border_subtle; |
| 64 |
let _: fn(makeover::Rgb, makeover::Rgb) -> _ = crate::border_strong; |
| 65 |
let _: fn(makeover::Rgb, makeover::Rgb, f32) -> _ = crate::mix_linear_srgb; |
| 66 |
} |
| 67 |
} |
| 68 |
|