1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#[macro_use]
extern crate lazy_static;
mod area;
mod code;
mod displayable_line;
mod line;
mod skin;
mod tbl;
mod text;
mod text_view;
mod wrap;
pub use area::Area;
pub use skin::MadSkin;
pub use line::FormattedLine;
pub use text::FormattedText;
pub use text_view::TextView;
fn get_default_skin<'s>() -> &'s MadSkin {
lazy_static! {
static ref DEFAULT_SKIN: MadSkin = MadSkin::new();
}
&DEFAULT_SKIN
}
pub fn inline(src: &str) -> FormattedLine {
get_default_skin().inline(src)
}
pub fn text(src: &str) -> FormattedText {
get_default_skin().text(src)
}
pub fn print_inline(src: &str) {
get_default_skin().print_inline(src);
}
pub fn print_text(src: &str) {
get_default_skin().print_text(src);
}