summaryrefslogblamecommitdiffstats
path: root/native/src/widget/pane_grid/draggable.rs
blob: 6044871d54186386232a8786781e9db5e37843d8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                                 
use crate::{Layout, Point};

/// A pane that can be dragged.
pub trait Draggable {
    /// Returns whether the [`Draggable`] with the given [`Layout`] can be picked
    /// at the provided cursor position.
    fn can_be_dragged_at(
        &self,
        layout: Layout<'_>,
        cursor_position: Point,
    ) -> bool;
}