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
20namespace Gtk { class Widget; }
21class SPDesktopWidget;
22class SPDocument;
23
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
34void 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 :
A GtkBox on an SPDesktop.
Typed SVG document implementation.
Definition document.h:101
void ink_drag_setup(SPDesktopWidget *dtw, Gtk::Widget *widget)
Definition desktop.h:50
SPDocument * document
Glib::ustring id
std::string unique_key