summaryrefslogtreecommitdiff
path: root/generate/gtkdnd.defs
blob: 83160477f4ef397c1890ad1ad0a01ee84654de10 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
; -*- scheme -*-

;; DnD functions ...

(define-func gtk_drag_get_data
  none
  ((GtkWidget widget)
   (GdkDragContext context)
   (GdkAtom target)
   (uint time)))

(define-func gtk_drag_finish
  none
  ((GdkDragContext context)
   (bool success)
   (bool del)
   (uint time)))

(define-func gtk_drag_get_source_widget
  GtkWidget
  ((GdkDragContext context)))

(define-func gtk_drag_highlight
  none
  ((GtkWidget widget)))

(define-func gtk_drag_unhighlight
  none
  ((GtkWidget widget)))

;; gtk_drag_dest_set

(define-func gtk_drag_dest_set_proxy
  none
  ((GtkWidget widget)
   (GdkWindow proxy_window)
   (GdkDragProtocol protocol)
   (bool use_coordinates)))

(define-func gtk_drag_dest_unset
  none
  ((GtkWidget widget)))

;; gtk_drag_source_set

(define-func gtk_drag_source_unset
  none
  ((GtkWidget widget)))

(define-func gtk_drag_source_set_icon
  none
  ((GtkWidget widget)
   (GdkColormap colormap)
   (GdkPixmap pixmap)
   (GdkBitmap mask)))

;; gtk_drag_begin

(define-func gtk_drag_set_icon_widget
  none
  ((GdkDragContext context)
   (GtkWidget widget)
   (int hot_x) (int hot_y)))

(define-func gtk_drag_set_icon_pixmap
  none
  ((GdkDragContext context)
   (GdkColormap colormap)
   (GdkPixmap pixmap)
   (GdkBitmap mask)
   (int hot_x) (int hot_y)))

(define-func gtk_drag_set_icon_default
  none
  ((GdkDragContext context)))

(define-func gtk_drag_set_default_icon
  none
  ((GdkColormap colormap)
   (GdkPixmap pixmap)
   (GdkBitmap mask)
   (int hot_x) (int hot_y)))

;; Selection functions ...

(define-func gdk_atom_intern
  GdkAtom
  ((string atom_name)
   (int only_if_exists (= "FALSE"))))

(define-func gdk_atom_name
  string
  ((GdkAtom atom)))

(define-func gtk_selection_owner_set
  int
  ((GtkWidget widget)
   (GdkAtom selection)
   (uint time)))

(define-func gtk_selection_add_target
  none
  ((GtkWidget widget)
   (GdkAtom selection)
   (GdkAtom target)
   (uint info)))

(define-func gtk_selection_convert
  int
  ((GtkWidget widget)
   (GdkAtom selection)
   (GdkAtom target)
   (uint time)))

;; gtk_selection_data_set -- implemented as method in pygtk.

(define-func gtk_selection_remove_all
  none
  ((GtkWidget widget)))