Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
drag-and-drop.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: GPL-2.0-or-later
2
#ifndef INKSCAPE_UI_DRAG_AND_DROP_H
3
#define INKSCAPE_UI_DRAG_AND_DROP_H
4
10
/* Authors:
11
*
12
* Copyright (C) Tavmjong Bah 2019
13
*
14
* Released under GNU GPL v2+, read the file 'COPYING' for more information.
15
*/
16
17
#include <glibmm/ustring.h>
18
#include <string>
19
20
namespace
Gtk
{
class
Widget; }
21
class
SPDesktopWidget
;
22
class
SPDocument
;
23
24
struct
DnDSymbol
25
{
26
// symbol's ID; may be reused in different symbol sets
27
Glib::ustring
id
;
28
// symbol's unique key (across symbol sets known to Inkscape at runtime)
29
std::string
unique_key
;
30
// symbol's document
31
SPDocument
*
document
=
nullptr
;
32
};
33
34
void
ink_drag_setup
(
SPDesktopWidget
*dtw, Gtk::Widget *widget);
35
36
#endif
// INKSCAPE_UI_DRAG_AND_DROP_H
37
38
/*
39
Local Variables:
40
mode:c++
41
c-file-style:"stroustrup"
42
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
43
indent-tabs-mode:nil
44
fill-column:99
45
End:
46
*/
47
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
SPDesktopWidget
A GtkBox on an SPDesktop.
Definition
desktop-widget.h:95
SPDocument
Typed SVG document implementation.
Definition
document.h:101
ink_drag_setup
void ink_drag_setup(SPDesktopWidget *dtw, Gtk::Widget *widget)
Definition
drag-and-drop.cpp:369
Gtk
Definition
desktop.h:50
DnDSymbol
Definition
drag-and-drop.h:25
DnDSymbol::document
SPDocument * document
Definition
drag-and-drop.h:31
DnDSymbol::id
Glib::ustring id
Definition
drag-and-drop.h:27
DnDSymbol::unique_key
std::string unique_key
Definition
drag-and-drop.h:29
src
ui
drag-and-drop.h
Generated on Sun Jul 13 2025 04:02:20 for Inkscape by
1.9.8