use super::*;
#[derive(Clone, Copy, Data, Debug, Default, New, PartialEq)]
pub struct Border {
#[get(type(copy))]
pub(crate) width: f32,
#[get(type(copy))]
pub(crate) color: Color,
}
#[derive(Clone, Copy, Data, Debug, Default, New, PartialEq)]
pub struct Shadow {
#[get(type(copy))]
pub(crate) offset_x: f32,
#[get(type(copy))]
pub(crate) offset_y: f32,
#[get(type(copy))]
pub(crate) blur_radius: f32,
#[get(type(copy))]
pub(crate) spread_radius: f32,
#[get(type(copy))]
pub(crate) color: Color,
}
#[derive(Clone, Copy, Data, Debug, Default, New, PartialEq)]
pub struct LinearGradient {
#[get(type(copy))]
pub(crate) angle_deg: f32,
#[get(type(copy))]
pub(crate) start_color: Color,
#[get(type(copy))]
pub(crate) end_color: Color,
}
#[derive(Clone, Copy, Data, Debug, New, PartialEq)]
pub struct Transform2D {
#[get(type(copy))]
pub(crate) translate_x: f32,
#[get(type(copy))]
pub(crate) translate_y: f32,
#[get(type(copy))]
pub(crate) scale_x: f32,
#[get(type(copy))]
pub(crate) scale_y: f32,
#[get(type(copy))]
pub(crate) rotation_rad: f32,
}
#[derive(Clone, Copy, Data, Debug, PartialEq)]
pub struct PaintStyle {
#[get(skip)]
pub(crate) background: Option<Color>,
#[get(skip)]
pub(crate) gradient: Option<LinearGradient>,
#[get(type(copy))]
pub(crate) border: Border,
#[get(type(copy))]
pub(crate) radius: CornerRadius,
#[get(skip)]
pub(crate) shadow: Option<Shadow>,
#[get(skip)]
pub(crate) focus_ring: Option<Border>,
#[get(type(copy))]
pub(crate) opacity: f32,
#[get(type(copy))]
pub(crate) transform: Transform2D,
#[get(type(copy))]
pub(crate) cursor: CursorIcon,
#[get(type(copy))]
pub(crate) pointer_events: PointerEvents,
#[get(type(copy))]
pub(crate) stop_scroll_propagation: bool,
#[get(type(copy))]
pub(crate) stop_event_propagation: bool,
}