From 427151f3bb241cf292fa46ee5e50354b998512ba Mon Sep 17 00:00:00 2001 From: Antoine Beyeler Date: Fri, 26 Jan 2024 17:39:16 +0100 Subject: [PATCH] Add documentation --- crates/egui/src/drag_and_drop.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/crates/egui/src/drag_and_drop.rs b/crates/egui/src/drag_and_drop.rs index f682a0dc1a7..1d302da066f 100644 --- a/crates/egui/src/drag_and_drop.rs +++ b/crates/egui/src/drag_and_drop.rs @@ -1,3 +1,13 @@ +//! Support for drag-and-drop in egui. +//! +//! This module implements the low-level drag-and-drop API with support for manually saving, retrieving, and clearing +//! drag-and-drop payloads. This enables the maximum flexibility for complex drag-and-drop interactions. +//! +//! For a higher-level API, see: +//! - [`crate::Ui::dnd_drag_source`], +//! - [`crate::Ui::dnd_drop_zone`], +//! - and the drag-related functions in [`crate::Response`]. + use std::{any::Any, sync::Arc}; use crate::{Context, CursorIcon, Id};