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
50
51
52
53
54
55
56
57
58
59
#![allow(dead_code)]
#![allow(unused_imports)]
#![allow(unused_variables)]
#![allow(unused_mut)]
#![allow(unused_assignments)]
pub mod cli;
pub use cli::*;
pub mod gui;
pub use gui::*;
pub mod res;
pub use res::*;
pub fn cli_run() {
let mut table = FmtTable::new(true);
let mut cell = FmtCell::new(-1, -1, 8, 3);
cell.expand_r(3);
cell.set_content(format!("row_span")).unwrap();
cell.set_halign(HAlign::Center(HP::L));
cell.set_valign(VAlign::Mid(VP::U));
table.insert(cell).unwrap();
let mut cell = FmtCell::new(1, -1, 8, 3);
cell.expand_d(1);
cell.set_content(format!("col_\nspan")).unwrap();
cell.set_halign(HAlign::Center(HP::L));
cell.set_valign(VAlign::Mid(VP::U));
table.insert(cell).unwrap();
let mut cell = FmtCell::new(0, 0, 8, 3);
cell.set_content(format!("center")).unwrap();
cell.set_halign(HAlign::Center(HP::L));
cell.set_valign(VAlign::Mid(VP::U));
table.insert(cell).unwrap();
let mut cell = FmtCell::new(-1, 0, 8, 2);
cell.expand_d(1);
cell.set_content(format!("col_\nspan")).unwrap();
cell.set_halign(HAlign::Center(HP::L));
cell.set_valign(VAlign::Mid(VP::U));
table.insert(cell).unwrap();
let mut cell = FmtCell::new(0, 1, 8, 3);
cell.expand_r(3);
cell.set_content(format!("row_span")).unwrap();
cell.set_halign(HAlign::Center(HP::L));
cell.set_valign(VAlign::Mid(VP::U));
table.insert(cell).unwrap();
table.print().unwrap();
}
pub fn gui_run() {
}