Skip to main content

dioxus_dnd/core/
mod.rs

1//! Shared primitives: the drag context, id/geometry types, hooks, and the
2//! `Draggable`/`DropZone`/`DragOverlay` components every other module builds on.
3
4pub mod components;
5pub mod hooks;
6pub mod machine;
7pub mod model;
8pub mod modifiers;
9pub mod registry;
10pub mod state;
11pub mod types;
12
13pub use components::{DndProvider, DragOverlay, Draggable, DropZone, ParentZone};
14pub use hooks::{
15    client_point, element_point, use_dnd, use_dnd_provider, use_zone_id, use_zone_registry,
16};
17pub use machine::{transition, GestureEffect, GestureEvent, GesturePhase};
18pub use model::{apply_clone_or_move, apply_list_clone_or_move};
19pub use modifiers::{apply_modifiers, DragModifier, ModifierCtx};
20pub use registry::{ZoneRecord, ZoneRegistry};
21pub use state::{DndContext, DragState};
22pub use types::{effective_effect, DragId, DragMode, DropEffect, DropOutcome, Point, Rect, ZoneId};