iced_widget/pane_grid/draggable.rs
1use crate::core::widget::Tree;
2use crate::core::{Layout, Point};
3
4/// A pane that can be dragged.
5pub trait Draggable {
6 /// Returns whether the [`Draggable`] with the given [`Layout`] can be picked
7 /// at the provided cursor position.
8 fn can_be_dragged_at(&self, tree: &Tree, layout: Layout, cursor: Point) -> bool;
9}