iced_resizable_split/style.rs
1pub struct Style {
2 pub divider_color: iced_core::Color,
3 pub divider_width: f32,
4}
5
6impl Default for Style {
7 fn default() -> Self {
8 Self {
9 divider_color: iced_core::Color::WHITE,
10 divider_width: 1.0,
11 }
12 }
13}
14
15#[derive(Debug, Clone, Copy, PartialEq, Eq)]
16pub enum State {
17 Idle,
18 Hovering,
19 Dragging,
20}
21
22pub(super) type StyleFn<'a, Theme> =
23 Box<dyn Fn(&Theme, super::style::State) -> super::style::Style + 'a>;