Skip to content

Commit

Permalink
Move mod-level docstring to DragAndDrop
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jan 29, 2024
1 parent 427151f commit ca91305
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions crates/egui/src/drag_and_drop.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
//! 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};

/// Helpers for drag-and-drop in egui.
/// Tracking of drag-and-drop payload.
///
/// This is a low-level API.
///
/// For a higher-level API, see:
/// - [`crate::Ui::dnd_drag_source`]
/// - [`crate::Ui::dnd_drop_zone`]
/// - [`crate::Response::dnd_set_drag_payload`]
/// - [`crate::Response::dnd_hover_payload`]
/// - [`crate::Response::dnd_release_payload`]
///
/// See [this example](https://github.com/emilk/egui/blob/master/crates/egui_demo_lib/src/demo/drag_and_drop.rs).
#[doc(alias = "drag and drop")]
Expand Down

0 comments on commit ca91305

Please sign in to comment.