Skip to main content

Draggable

Trait Draggable 

Source
pub trait Draggable {
    // Required method
    fn can_be_dragged_at(
        &self,
        tree: &Tree,
        layout: Layout,
        cursor: Point,
    ) -> bool;
}
Expand description

A pane that can be dragged.

Required Methods§

Source

fn can_be_dragged_at(&self, tree: &Tree, layout: Layout, cursor: Point) -> bool

Returns whether the Draggable with the given Layout can be picked at the provided cursor position.

Implementors§

Source§

impl<Message, T, W, Theme, Renderer> Draggable for &Content<'_, Message, T, W, Theme, Renderer>
where Theme: Catalog, Renderer: Renderer, T: Widget<Message, Theme, Renderer>,