rat_widget/clipper/
clipper_style.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use crate::_private::NonExhaustive;
use rat_scrolled::ScrollStyle;
use ratatui::widgets::Block;

/// Clipper styles.
#[derive(Debug, Clone)]
pub struct ClipperStyle {
    pub block: Option<Block<'static>>,
    pub scroll: Option<ScrollStyle>,

    pub non_exhaustive: NonExhaustive,
}

impl Default for ClipperStyle {
    fn default() -> Self {
        Self {
            block: None,
            scroll: None,
            non_exhaustive: NonExhaustive,
        }
    }
}