iced_widget/pane_grid/
draggable.rs

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