blob: b782b1f51dc47fd89485c44757164ded4f05d6c7 (
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
|
use std::path;
mod tui_backend;
pub mod views;
pub mod widgets;
pub use tui_backend::*;
#[derive(Debug, Clone, Copy, Hash, PartialEq, Eq)]
pub struct Rect {
pub x: u16,
pub y: u16,
pub width: u16,
pub height: u16,
}
pub struct RenderResult {
pub file_preview_path: Option<path::PathBuf>,
pub preview_area: Option<Rect>,
}
impl RenderResult {
pub fn new() -> RenderResult {
RenderResult {
file_preview_path: None,
preview_area: None,
}
}
}
|