rat_widget/clipper/
clipper_style.rs1use crate::_private::NonExhaustive;
2use rat_scrolled::ScrollStyle;
3use ratatui::layout::Alignment;
4use ratatui::prelude::Style;
5use ratatui::widgets::Block;
6
7#[derive(Debug, Clone)]
9pub struct ClipperStyle {
10 pub style: Style,
11 pub label_style: Option<Style>,
12 pub label_alignment: Option<Alignment>,
13 pub block: Option<Block<'static>>,
14 pub scroll: Option<ScrollStyle>,
15 pub non_exhaustive: NonExhaustive,
16}
17
18impl Default for ClipperStyle {
19 fn default() -> Self {
20 Self {
21 style: Default::default(),
22 label_style: None,
23 label_alignment: None,
24 block: None,
25 scroll: None,
26 non_exhaustive: NonExhaustive,
27 }
28 }
29}