summaryrefslogtreecommitdiff
path: root/gtk/gtkdragdestprivate.h
blob: cb1c0312083519bc27aae8bc7dfe3f96982e1033 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50

/* GTK - The GIMP Toolkit
 * Copyright (C) 2020 Matthias Clasen
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef __GTK_DRAG_DEST_PRIVATE_H__
#define __GTK_DRAG_DEST_PRIVATE_H__

#include "gtkdragdest.h"

G_BEGIN_DECLS

void gtk_drop_target_emit_drag_data_received (GtkDropTarget    *dest,
                                              GdkDrop          *drop,
                                              GtkSelectionData *sdata);
void gtk_drop_target_emit_drag_leave         (GtkDropTarget    *dest,
                                              GdkDrop          *drop);
gboolean gtk_drop_target_emit_drag_motion    (GtkDropTarget    *dest,
                                              GdkDrop          *drop,
                                              int               x,
                                              int               y);
gboolean gtk_drop_target_emit_drag_drop      (GtkDropTarget    *dest,
                                              GdkDrop          *drop,
                                              int               x,
                                              int               y);

const char * gtk_drop_target_match           (GtkDropTarget *dest,
                                              GdkDrop       *drop);
void         gtk_drop_target_set_armed       (GtkDropTarget *dest,
                                              gboolean       armed);
gboolean     gtk_drop_target_get_armed       (GtkDropTarget *dest);

GtkDropTarget *gtk_drop_target_get           (GtkWidget *widget);

G_END_DECLS

#endif