mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
16 lines
354 B
Rust
16 lines
354 B
Rust
use ratatui::layout::Rect;
|
|
|
|
#[derive(Clone, Copy, Default, Eq, PartialEq)]
|
|
pub struct Layout {
|
|
pub current: Rect,
|
|
pub preview: Rect,
|
|
pub progress: Rect,
|
|
}
|
|
|
|
impl Layout {
|
|
pub const fn default() -> Self {
|
|
Self { current: Rect::ZERO, preview: Rect::ZERO, progress: Rect::ZERO }
|
|
}
|
|
|
|
pub const fn limit(&self) -> usize { self.current.height as _ }
|
|
}
|