Skip to main content

gpui_kit/interaction/
mod.rs

1//! Interaction systems that span more than one component.
2//!
3//! A component family owns its own pointer and keyboard behaviour. What lives
4//! here is the machinery several families have to agree on, because the
5//! gesture starts in one component and finishes in another.
6//!
7//! - [`dnd`] — carrying an item from where it is to where it should go.
8
9pub mod dnd;
10
11pub use dnd::{
12    ActiveDrag, DRAG_NODE_ID, DragItem, DropAxis, DropIntent, DropPosition, FILE_KIND, ROW_KIND,
13    StagedDrag,
14};
15
16/// Installs the drag session and the key that cancels a drag.
17pub fn install(cx: &mut gpui::App) {
18    dnd::install(cx);
19}