blob: 0bc0c3180faf8b7b099f8a1b2547bb68e701fa77 (
plain)
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
|
pub mod simple_table;
pub use simple_table::*;
pub mod cpu_graph;
pub use cpu_graph::*;
pub mod disk_table;
pub use disk_table::*;
pub mod mem_graph;
pub use mem_graph::*;
pub mod net_graph;
pub use net_graph::*;
pub mod process_table;
pub use process_table::*;
pub mod temp_table;
pub use temp_table::*;
pub mod battery_table;
pub use battery_table::*;
pub mod cpu_simple;
pub use cpu_simple::*;
pub mod mem_simple;
pub use mem_simple::*;
pub mod net_simple;
pub use net_simple::*;
use crate::{app::AppConfig, canvas::Painter, data_conversion::ConvertedData, tuine::ViewContext};
pub trait AppWidget {
fn build(
ctx: &mut ViewContext<'_>, painter: &Painter, config: &AppConfig,
data: &mut ConvertedData<'_>,
) -> Self;
}
|