use super::style::{DefaultDragHandleStyle, DragHandleStyle};
use super::theme::{DefaultDragHandleTheme, DragHandleTheme};
pub struct DragHandleSettings {
pub theme: Box<dyn DragHandleTheme>,
pub style: Box<dyn DragHandleStyle>,
}
impl Default for DragHandleSettings {
fn default() -> Self {
Self {
theme: Box::new(DefaultDragHandleTheme),
style: Box::new(DefaultDragHandleStyle),
}
}
}
impl DragHandleSettings {
pub fn with_theme(mut self, theme: Box<dyn DragHandleTheme>) -> Self {
self.theme = theme;
self
}
pub fn with_style(mut self, style: Box<dyn DragHandleStyle>) -> Self {
self.style = style;
self
}
}