112ac1d3 |
1 | ;; Common Lisp bindings for GTK+ v2.x |
2 | ;; Copyright 1999-2005 Espen S. Johnsen <espen@users.sf.net> |
560af5c5 |
3 | ;; |
112ac1d3 |
4 | ;; Permission is hereby granted, free of charge, to any person obtaining |
5 | ;; a copy of this software and associated documentation files (the |
6 | ;; "Software"), to deal in the Software without restriction, including |
7 | ;; without limitation the rights to use, copy, modify, merge, publish, |
8 | ;; distribute, sublicense, and/or sell copies of the Software, and to |
9 | ;; permit persons to whom the Software is furnished to do so, subject to |
10 | ;; the following conditions: |
560af5c5 |
11 | ;; |
112ac1d3 |
12 | ;; The above copyright notice and this permission notice shall be |
13 | ;; included in all copies or substantial portions of the Software. |
560af5c5 |
14 | ;; |
112ac1d3 |
15 | ;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
16 | ;; EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
17 | ;; MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
18 | ;; IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
19 | ;; CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
20 | ;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
21 | ;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
560af5c5 |
22 | |
0c9b7932 |
23 | ;; $Id: gtktypes.lisp,v 1.49 2006-08-14 13:57:37 espen Exp $ |
560af5c5 |
24 | |
25 | (in-package "GTK") |
26 | |
2719586f |
27 | (defclass requisition (boxed) |
28 | ((width |
29 | :allocation :alien |
30 | :accessor requisition-width |
31 | :initarg :width |
32 | :type int) |
33 | (height |
34 | :allocation :alien |
35 | :accessor requisition-height |
36 | :initarg :height |
37 | :type int)) |
1047e159 |
38 | (:metaclass boxed-class)) |
39 | |
2719586f |
40 | |
e6d40e16 |
41 | (defclass allocation (struct) |
42 | ((x |
43 | :allocation :alien |
44 | :accessor allocation-width |
45 | :initarg :x |
46 | :type int) |
47 | (y |
48 | :allocation :alien |
49 | :accessor allocation-width |
50 | :initarg :width |
51 | :type int) |
52 | (width |
53 | :allocation :alien |
54 | :accessor allocation-width |
55 | :initarg :width |
56 | :type int) |
57 | (height |
58 | :allocation :alien |
59 | :accessor allocation-height |
60 | :initarg :height |
61 | :type int)) |
9adccb27 |
62 | (:metaclass struct-class)) |
e6d40e16 |
63 | |
2719586f |
64 | (defclass border (boxed) |
65 | ((left |
66 | :allocation :alien |
67 | :accessor border-left |
68 | :initarg :left |
69 | :type int) |
70 | (right |
71 | :allocation :alien |
72 | :accessor border-right |
73 | :initarg :right |
74 | :type int) |
75 | (top |
76 | :allocation :alien |
77 | :accessor border-top |
78 | :initarg :top |
79 | :type int) |
80 | (bottom |
81 | :allocation :alien |
82 | :accessor border-bottom |
83 | :initarg :bottom |
84 | :type int)) |
1047e159 |
85 | (:metaclass boxed-class)) |
2719586f |
86 | |
f5b67f2b |
87 | (defclass stock-item (struct) |
88 | ((id |
89 | :allocation :alien |
90 | :accessor stock-item-id |
91 | :initarg :id |
92 | :type string) |
93 | (label |
94 | :allocation :alien |
95 | :accessor stock-item-label |
96 | :initarg :label |
97 | :type string) |
98 | (modifier |
99 | :allocation :alien |
100 | :accessor stock-item-modifier |
101 | :initarg :modifier |
102 | :type gdk:modifier-type) |
103 | (keyval |
104 | :allocation :alien |
105 | :accessor stock-item-keyval |
106 | :initarg :keyval |
107 | :type int) |
108 | (translation-domain |
109 | :allocation :alien |
110 | :accessor stock-item-translation-domain |
111 | :initarg :translation-domain |
112 | :type string)) |
b6d4ac86 |
113 | (:metaclass struct-class) |
114 | (:ref stock-item-copy) |
115 | (:unref stock-item-free)) |
f5b67f2b |
116 | |
163a08aa |
117 | (defclass tree-iter (boxed) |
960af18a |
118 | ((stamp :allocation :alien :type int) |
119 | (user-data :allocation :alien :type pointer) |
120 | (user-data2 :allocation :alien :type pointer) |
121 | (user-data3 :allocation :alien :type pointer)) |
122 | (:metaclass boxed-class)) |
2a8752b0 |
123 | |
124 | |
125 | ;; (defclass tree-path (boxed) |
126 | ;; ((depth :allocation :alien :type int) |
127 | ;; (indices :allocation :alien :type pointer)) |
128 | ;; (:metaclass boxed-class)) |
129 | |
f4175703 |
130 | (deftype tree-path () '(vector integer)) |
dfa4f314 |
131 | (register-type 'tree-path '|gtk_tree_path_get_type|) |
2a8752b0 |
132 | |
68f519e0 |
133 | (deftype position () |
134 | '(or int (enum (:start 0) (:end -1) (:first 0) (:last -1)))) |
135 | |
b6d4ac86 |
136 | (define-type-method from-alien-form ((type position) form &key ref) |
137 | (declare (ignore type ref)) |
75689fea |
138 | (from-alien-form 'int form)) |
139 | |
b6d4ac86 |
140 | (define-type-method from-alien-function ((type position) &key ref) |
141 | (declare (ignore type ref)) |
75689fea |
142 | (from-alien-function 'int)) |
143 | |
b6d4ac86 |
144 | (define-type-method reader-function ((type position) &optional ref) |
145 | (declare (ignore type ref)) |
68f519e0 |
146 | (reader-function 'int)) |
d76e9fca |
147 | |
2719586f |
148 | (define-types-by-introspection "Gtk" |
149 | ;; Manually defined |
150 | ("GtkObject" :ignore t) |
151 | ("GtkRequisition" :ignore t) |
152 | ("GtkBorder" :ignore t) |
2a8752b0 |
153 | ("GtkTreeIter" :ignore t) |
154 | ("GtkTreePath" :ignore t) |
aa77651b |
155 | ; ("GtkStyle" :ignore t) |
1047e159 |
156 | |
5b51dee1 |
157 | ;; Manual override |
158 | ("GtkWidget" |
159 | :slots |
c289d084 |
160 | ((child-properties |
b19bbc94 |
161 | :special t |
c289d084 |
162 | :accessor widget-child-properties |
1047e159 |
163 | :type container-child) |
5b51dee1 |
164 | (window |
165 | :allocation :virtual |
166 | :getter "gtk_widget_get_window" |
167 | :reader widget-window |
168 | :type gdk:window) |
c2a12566 |
169 | (parent :merge t :initarg nil) |
170 | (visible :merge t :initarg nil) |
68f519e0 |
171 | (parent-window |
172 | :allocation :virtual |
173 | :getter %widget-parent-window |
174 | :setter "gtk_widget_set_parent_window" |
175 | :accessor widget-parent-window |
176 | :initarg :parent-window |
177 | :type gdk:window) |
5b51dee1 |
178 | (state |
179 | :allocation :virtual |
180 | :getter "gtk_widget_get_state" |
181 | :setter "gtk_widget_set_state" |
182 | :accessor widget-state |
183 | :initarg :state |
184 | :type state-type) |
185 | (colormap |
186 | :allocation :virtual |
187 | :getter "gtk_widget_get_colormap" |
e6d40e16 |
188 | :setter "gtk_widget_set_colormap" |
189 | :initarg :colormap |
190 | :accessor widget-colormap |
5b51dee1 |
191 | :type gdk:colormap) |
192 | (visual |
193 | :allocation :virtual |
194 | :getter "gtk_widget_get_visual" |
195 | :reader widget-visual |
e6d40e16 |
196 | :type gdk:visual) |
197 | (direction |
198 | :allocation :virtual |
199 | :getter "gtk_widget_get_direction" |
200 | :setter "gtk_widget_set_direction" |
201 | :accessor widget-direction |
202 | :initarg :direction |
203 | :type text-direction) |
204 | (composite-name |
205 | :allocation :virtual |
206 | :getter "gtk_widget_get_composite_name" |
207 | :setter "gtk_widget_set_composite_name" |
208 | :accessor widget-composite-name |
209 | :initarg :composite-name |
68f519e0 |
210 | :type (copy-of string)) ; will leak the string when setting |
e6d40e16 |
211 | (settings |
212 | :allocation :virtual |
213 | :getter "gtk_widget_get_settings" |
214 | :accessor widget-settings |
215 | :type settings) |
216 | (child-visible |
217 | :allocation :virtual |
218 | :getter "gtk_widget_get_child_visible" |
219 | :setter "gtk_widget_set_child_visible" |
220 | :accessor widget-child-visible-p |
221 | :initarg :child-visible |
aa77651b |
222 | :type boolean) |
223 | (width-request |
224 | :merge t :unbound -1) |
225 | (height-request |
226 | :merge t :unbound -1))) |
e6d40e16 |
227 | |
5b51dee1 |
228 | ("GtkContainer" |
229 | :slots |
d76e9fca |
230 | ((child :ignore t) |
5b51dee1 |
231 | (children |
232 | :allocation :virtual |
d76e9fca |
233 | :setter (setf container-children) |
b6d4ac86 |
234 | :getter "gtk_container_get_children" |
235 | :reader container-children |
236 | :type (glist (copy-of widget))) |
237 | (internal-children ; for debugging |
238 | :allocation :virtual |
239 | :getter container-internal-children) |
d76e9fca |
240 | (child-type |
241 | :allocation :virtual |
cb4bf772 |
242 | :getter "gtk_container_child_type" |
d76e9fca |
243 | :reader container-child-type |
244 | :type gtype) |
5b51dee1 |
245 | (focus-child |
246 | :allocation :virtual |
247 | :getter "gtk_container_get_focus_child" |
248 | :setter "gtk_container_set_focus_child" |
249 | :accessor container-focus-child |
250 | :initarg :focus-child |
251 | :type widget) |
e6d40e16 |
252 | (focus-chain |
253 | :allocation :virtual |
254 | :getter container-focus-chain |
255 | :setter (setf container-focus-chain)) |
5b51dee1 |
256 | (focus-hadjustment |
257 | :allocation :virtual |
258 | :getter "gtk_container_get_focus_hadjustment" |
259 | :setter "gtk_container_set_focus_hadjustment" |
260 | :accessor container-focus-hadjustment |
261 | :initarg :focus-hadjustment |
262 | :type adjustment) |
263 | (focus-vadjustment |
264 | :allocation :virtual |
265 | :getter "gtk_container_get_focus_vadjustment" |
266 | :setter "gtk_container_set_focus_vadjustment" |
267 | :accessor container-focus-vadjustment |
268 | :initarg :focus-vadjustment |
d76e9fca |
269 | :type adjustment) |
270 | (reallocate-redraws |
271 | :allocation :virtual |
272 | :getter "gtk_container_get_reallocate_redraws" |
273 | :setter "gtk_container_set_reallocate_redraws" |
274 | :accessor container-reallocate-redraws |
275 | :initarg :reallocate-redraws |
276 | :type boolean))) |
5b51dee1 |
277 | |
278 | ("GtkBin" |
279 | :slots |
280 | ((child |
281 | :allocation :virtual |
56460319 |
282 | :getter "gtk_bin_get_child" |
283 | :setter (setf bin-child) |
284 | :reader bin-child |
285 | :type widget))) |
3f73963b |
286 | |
287 | ("GtkWindow" |
288 | :slots |
4d16221f |
289 | ((focus-widget |
3f73963b |
290 | :allocation :virtual |
291 | :getter "gtk_window_get_focus" |
292 | :setter "gtk_window_set_focus" |
293 | :accessor window-focus-widget |
294 | :initarg :focus-widget |
295 | :type widget) |
296 | (default-widget |
297 | :allocation :virtual |
298 | :getter "gtk_window_get_default" |
299 | :setter "gtk_window_set_default" |
300 | :accessor window-default-widget |
301 | :initarg :default-widget |
302 | :type widget) |
3f73963b |
303 | (has-frame |
304 | :allocation :virtual |
305 | :getter "gtk_window_get_has_frame" |
306 | :setter "gtk_window_set_has_frame" |
307 | :accessor window-has-frame-p |
308 | :initarg :has-frame |
309 | :type boolean) |
4d16221f |
310 | (icon-list |
3f73963b |
311 | :allocation :virtual |
b049d554 |
312 | :getter %window-get-icon-list |
4d16221f |
313 | :setter "gtk_window_set_icon_list" |
314 | :accessor window-icon-list |
315 | :initarg :icon-list |
316 | :type (glist gdk:pixbuf)) |
3f73963b |
317 | (mnemonic-modifier |
318 | :allocation :virtual |
319 | :getter "gtk_window_get_mnemonic_modifier" |
320 | :setter "gtk_window_set_mnemonic_modifier" |
321 | :accessor window-mnemonic-modifier |
322 | :initarg :mnemonic-modifier |
323 | :type gdk:modifier-type) |
324 | (transient-for |
325 | :allocation :virtual |
326 | :getter "gtk_window_get_transient_for" |
327 | :setter "gtk_window_set_transient_for" |
328 | :accessor window-transient-for |
329 | :initarg :transient-for |
4d16221f |
330 | :type window) |
331 | (group |
332 | :allocation :virtual |
333 | :getter "gtk_window_get_group" |
334 | :setter (setf window-group) |
335 | :reader window-group |
336 | :initarg :group |
337 | :type window-group) |
338 | (default-width :merge t :unbound -1) |
339 | (default-height :merge t :unbound -1))) |
5b51dee1 |
340 | |
4d16221f |
341 | ("GtkWindowGroup" |
b6d4ac86 |
342 | :dependencies (window) |
4d16221f |
343 | :slots |
344 | ((grabs |
345 | :allocation :alien |
346 | :accessor window-group-grabs |
347 | :type (gslist window)))) |
348 | |
5b51dee1 |
349 | ("GtkTooltips" |
350 | :slots |
351 | ((enabled |
352 | :allocation :virtual |
353 | :getter "gtk_tooltips_get_enabled" |
354 | :setter (setf tooltips-enabled-p) |
355 | :reader tooltips-enabled-p |
356 | :initarg :enabled |
357 | :type boolean))) |
358 | |
5b51dee1 |
359 | ("GtkMenuItem" |
360 | :slots |
361 | ((label |
362 | :allocation :virtual |
f5b67f2b |
363 | :getter menu-item-label |
364 | :setter (setf menu-item-label) |
5b51dee1 |
365 | :type string) |
d76e9fca |
366 | (use-underline |
367 | :allocation :user-data |
368 | :initform nil |
369 | :initarg :use-underline |
370 | :accessor menu-item-use-underline-p) |
f5b67f2b |
371 | (right-justified |
372 | :allocation :virtual |
373 | :getter "gtk_menu_item_get_right_justified" |
374 | :setter "gtk_menu_item_set_right_justified" |
375 | :accessor menu-item-right-justified-p |
376 | :initarg :right-justified |
377 | :type boolean) |
5b51dee1 |
378 | (submenu |
379 | :allocation :virtual |
380 | :getter "gtk_menu_item_get_submenu" |
d76e9fca |
381 | :setter "gtk_menu_item_set_submenu" |
382 | :accessor menu-item-submenu |
5b51dee1 |
383 | :initarg :submenu |
d76e9fca |
384 | :type widget))) |
5b51dee1 |
385 | |
bdc0e300 |
386 | ("GtkMenuShell" |
387 | :slots |
388 | ((take-focus-p |
389 | :allocation :virtual |
390 | :getter "gtk_menu_shell_get_take_focus" |
391 | :setter "gtk_menu_shell_set_take_focus" |
392 | :accessor menu-shell-take-focus-p |
393 | :type boolean))) |
394 | |
5b51dee1 |
395 | ("GtkColorSelectionDialog" |
396 | :slots |
397 | ((colorsel |
398 | :allocation :alien |
399 | :reader color-selection-dialog-colorsel |
400 | :type widget) |
401 | (ok-button |
402 | :allocation :alien |
403 | :reader color-selection-dialog-ok-button |
404 | :type widget) |
405 | (cancel-button |
406 | :allocation :alien |
407 | :reader color-selection-dialog-cancel-button |
408 | :type widget) |
409 | (help-button |
410 | :allocation :alien |
411 | :reader color-selection-dialog-help-button |
412 | :type widget))) |
413 | |
414 | ("GtkScrolledWindow" |
415 | :slots |
b6d4ac86 |
416 | (#?-(pkg-exists-p "gtk+-2.0" :atleast-version "2.8.0") |
bdc0e300 |
417 | (hscrollbar |
418 | :allocation :alien |
5b51dee1 |
419 | :reader scrolled-window-hscrollbar |
420 | :type widget) |
b6d4ac86 |
421 | #?-(pkg-exists-p "gtk+-2.0" :atleast-version "2.8.0") |
5b51dee1 |
422 | (vscrollbar |
423 | :allocation :alien |
424 | :reader scrolled-window-vscrollbar |
bdc0e300 |
425 | :type widget) |
b6d4ac86 |
426 | #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.8.0") |
bdc0e300 |
427 | (hscrollbar |
428 | :allocation :virtual |
429 | :getter "gtk_scrolled_window_get_hscrollbar" |
430 | :reader scrolled-window-hscrollbar |
431 | :type widget) |
b6d4ac86 |
432 | #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.8.0") |
bdc0e300 |
433 | (vscrollbar |
434 | :allocation :virtual |
b6d4ac86 |
435 | :getter "gtk_scrolled_window_get_vscrollbar" |
bdc0e300 |
436 | :reader scrolled-window-vscrollbar |
5b51dee1 |
437 | :type widget))) |
560af5c5 |
438 | |
5b51dee1 |
439 | ("GtkPaned" |
1047e159 |
440 | :slots |
5b51dee1 |
441 | ((child1 |
560af5c5 |
442 | :allocation :virtual |
1dd03ab8 |
443 | :getter "gtk_paned_get_child1" |
444 | :setter "gtk_paned_add1" |
445 | :accessor paned-child1 |
5b51dee1 |
446 | :initarg :child1 |
560af5c5 |
447 | :type widget) |
5b51dee1 |
448 | (child2 |
2d379b6a |
449 | :allocation :virtual |
1dd03ab8 |
450 | :getter "gtk_paned_get_child2" |
451 | :setter "gtk_paned_add2" |
452 | :accessor paned-child2 |
5b51dee1 |
453 | :initarg :child2 |
454 | :type widget))) |
560af5c5 |
455 | |
5b51dee1 |
456 | ("GtkMenu" |
457 | :slots |
458 | ((accel-group |
459 | :allocation :virtual |
460 | :getter "gtk_menu_get_accel_group" |
461 | :setter "gtk_menu_set_accel_group" |
462 | :accessor menu-accel-group |
463 | :initarg :accel-group |
464 | :type accel-group) |
465 | (active |
466 | :allocation :virtual |
467 | :getter "gtk_menu_get_active" |
468 | :setter (setf menu-active) |
469 | :reader menu-active |
470 | :initarg :active |
471 | :type widget) |
d76e9fca |
472 | (screen |
473 | :allocation :virtual |
474 | :getter "gtk_menu_get_screen" |
475 | :setter "gtk_menu_set_screen" |
476 | :accessor menu-screen |
477 | :initarg :screen |
478 | :type gdk:screen) |
479 | (attach-widget |
480 | :allocation :virtual |
481 | :getter "gtk_menu_get_attach_widget" |
482 | :reader menu-attach-widget |
483 | :type widget) |
b6d4ac86 |
484 | #?-(pkg-exists-p "gtk+-2.0" :atleast-version "2.6.0") |
d76e9fca |
485 | (tearoff-state |
5b51dee1 |
486 | :allocation :virtual |
487 | :getter "gtk_menu_get_tearoff_state" |
488 | :setter "gtk_menu_set_tearoff_state" |
d76e9fca |
489 | :accessor menu-tearoff-state-p |
490 | :initarg :tearoff-state |
5b51dee1 |
491 | :type boolean))) |
492 | |
8db41d01 |
493 | ("GtkPlug" |
494 | :slots |
495 | ((id |
496 | :allocation :virtual |
497 | :getter "gtk_plug_get_id" |
498 | :reader plug-id |
499 | :type gdk:native-window))) |
500 | |
501 | ("GtkSocket" |
502 | :slots |
503 | ((id |
504 | :allocation :virtual |
505 | :getter "gtk_socket_get_id" |
506 | :reader socket-id |
507 | :type gdk:native-window))) |
508 | |
5b51dee1 |
509 | ("GtkToolbar" |
510 | :slots |
cb4bf772 |
511 | ((show-tooltips |
5b51dee1 |
512 | :allocation :virtual |
513 | :getter "gtk_toolbar_get_tooltips" |
514 | :setter "gtk_toolbar_set_tooltips" |
cb4bf772 |
515 | :accessor toolbar-show-tooltips-p |
516 | :initarg :show-tooltips |
5b51dee1 |
517 | :type boolean) |
cb4bf772 |
518 | (tooltips |
5b51dee1 |
519 | :allocation :virtual |
cb4bf772 |
520 | :getter "gtk_toolbar_get_tooltips_object" |
521 | :reader toolbar-tooltips |
522 | :type tooltips) |
1047e159 |
523 | (toolbar-style |
524 | :allocation :property |
525 | :pname "toolbar-style" |
526 | :initarg :toolbar-style |
527 | :accessor toolbar-style |
cb4bf772 |
528 | :type toolbar-style) |
529 | (n-items |
530 | :allocation :virtual |
531 | :getter "gtk_toolbar_get_n_items" |
532 | :reader toolbar-n-items |
533 | :type int))) |
5b51dee1 |
534 | |
d76e9fca |
535 | ("GtkToolItem" |
536 | :slots |
cb4bf772 |
537 | ((use-drag-window |
d76e9fca |
538 | :allocation :virtual |
cb4bf772 |
539 | :getter "gtk_tool_item_get_use_drag_window" |
540 | :setter "gtk_tool_item_set_use_drag_window" |
541 | :accessor tool-item-use-drag-window-p |
d76e9fca |
542 | :initarg :drag-window |
cb4bf772 |
543 | :type boolean) |
544 | (tip-text |
545 | :allocation :user-data |
546 | :setter (setf tool-item-tip-text) |
547 | :initarg :tip-text |
548 | :reader tool-item-tip-text) |
549 | (tip-private |
550 | :allocation :user-data |
551 | :setter (setf tool-item-tip-private) |
552 | :initarg :tip-private |
553 | :reader tool-item-tip-private))) |
554 | |
555 | ("GtkToolButton" |
556 | :slots |
557 | ((stock-id :merge t :initarg :stock) |
558 | (icon-widget :merge t :initarg :icon))) |
d76e9fca |
559 | |
560 | ("GtkToggleToolButton" |
561 | :slots |
562 | ((active |
563 | :allocation :virtual |
564 | :getter "gtk_toggle_tool_button_get_active" |
565 | :setter "gtk_toggle_tool_button_get_active" |
566 | :accessor toggle-tool-button-active-p |
567 | :initarg :active |
568 | :type boolean))) |
569 | |
570 | ("GtkRadioToolButton" |
571 | :slots |
572 | ((group |
573 | :allocation :virtual |
574 | :getter "gtk_radio_tool_button_get_group" |
575 | :reader radio-tool-button-group |
cb4bf772 |
576 | :type (copy-of (gslist widget))) |
577 | (value |
578 | :allocation :user-data |
579 | :initarg :value |
580 | :accessor radio-tool-button-value |
581 | :documentation "Value passed as argument to the activate callback"))) |
d76e9fca |
582 | |
f5b67f2b |
583 | ("GtkNotebook" |
584 | :slots |
585 | ((current-page |
586 | :allocation :virtual |
68f519e0 |
587 | :getter %notebook-current-page |
f5b67f2b |
588 | :setter (setf notebook-current-page) |
68f519e0 |
589 | :reader notebook-current-page |
590 | :type widget |
f5b67f2b |
591 | :initarg :current-page) |
68f519e0 |
592 | (current-page-num |
593 | :allocation :virtual |
594 | :getter "gtk_notebook_get_current_page" |
595 | :setter "gtk_notebook_set_current_page" |
596 | :unbound -1 |
597 | :initarg :current-page-num |
598 | :accessor notebook-current-page-num |
599 | :type position))) |
f5b67f2b |
600 | |
5b51dee1 |
601 | ("GtkRuler" |
602 | :slots |
603 | ((metric |
604 | :allocation :virtual |
605 | :getter "gtk_ruler_get_metric" |
606 | :setter "gtk_ruler_set_metric" |
607 | :accessor ruler-metric |
608 | :initarg :metric |
609 | :type metric-type))) |
610 | |
611 | ("GtkProgressBar" |
612 | :slots |
613 | ; deprecated properties |
614 | ((bar-style :ignore t) |
615 | (adjustment :ignore t) |
616 | (activity-step :ignore t) |
617 | (activity-blocks :ignore t) |
618 | (discrete-blocks :ignore t))) |
619 | |
d76e9fca |
620 | ("GtkHandleBox" |
621 | :slots |
622 | ; deprecated property |
623 | ((shadow :ignore t))) |
624 | |
625 | ("GtkFrame" |
626 | :slots |
627 | ; deprecated property |
628 | ((shadow :ignore t))) |
629 | |
5b51dee1 |
630 | ("GtkTable" |
631 | :slots |
632 | ((column-spacing |
633 | :allocation :virtual |
634 | :getter "gtk_table_get_default_col_spacing" |
635 | :setter "gtk_table_set_col_spacings" |
636 | :initarg :column-spacing |
637 | :type unsigned-int) |
638 | (row-spacing |
639 | :allocation :virtual |
640 | :getter "gtk_table_get_default_row_spacing" |
641 | :setter "gtk_table_set_row_spacings" |
642 | :initarg :row-spacing |
643 | :type unsigned-int))) |
644 | |
645 | ("GtkDialog" |
646 | :slots |
1047e159 |
647 | ((vbox |
5b51dee1 |
648 | :allocation :virtual |
649 | :getter "gtk_dialog_get_vbox" |
1047e159 |
650 | :reader dialog-vbox |
5b51dee1 |
651 | :type widget) |
652 | (action-area |
653 | :allocation :virtual |
654 | :getter "gtk_dialog_get_action_area" |
655 | :reader dialog-action-area |
656 | :type widget))) |
2ed3bebb |
657 | |
d76e9fca |
658 | ("GtkEntry" |
5b51dee1 |
659 | :slots |
d76e9fca |
660 | ((layout |
5b51dee1 |
661 | :allocation :virtual |
d76e9fca |
662 | :getter "gtk_entry_get_layout" |
663 | :reader entry-layout |
664 | :type pango:layout) |
665 | (completion |
163a08aa |
666 | :allocation :virtual |
d76e9fca |
667 | :getter "gtk_entry_get_completion" |
668 | :setter "gtk_entry_set_completion" |
669 | :initarg :completion |
670 | :accessor entry-completion |
671 | :type entry-completion) |
672 | (max-length :merge t :unbound 0) |
b6d4ac86 |
673 | #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.6.0") |
647c99e5 |
674 | (width-chars :merge t :unbound -1))) |
d76e9fca |
675 | |
f45fd227 |
676 | ("GtkEntryCompletion" |
677 | :slots |
678 | ((entry |
679 | :allocation :virtual |
680 | :getter "gtk_entry_completion_get_entry" |
681 | :reader entry-completion-entry |
682 | :type entry) |
d76e9fca |
683 | (minimum-key-length :merge t :unbound -1) |
b6d4ac86 |
684 | #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.6.0") |
d76e9fca |
685 | (text-column :merge t :unbound -1))) |
f45fd227 |
686 | |
5b51dee1 |
687 | ("GtkRadioButton" |
688 | :slots |
689 | ((group |
690 | :allocation :virtual |
691 | :getter "gtk_radio_button_get_group" |
692 | :reader radio-button-group |
cb4bf772 |
693 | :type (copy-of (gslist widget))) |
694 | (value |
695 | :allocation :user-data |
696 | :initarg :value |
697 | :accessor radio-button-value |
698 | :documentation "Value passed as argument to the activate callback"))) |
d520140e |
699 | |
5b51dee1 |
700 | ("GtkRadioMenuItem" |
701 | :slots |
702 | ((group |
703 | :allocation :virtual |
704 | :getter "gtk_radio_menu_item_get_group" |
705 | :reader radio-menu-item-group |
cb4bf772 |
706 | :type (copy-of (gslist widget))) |
707 | (value |
708 | :allocation :user-data |
709 | :initarg :value |
710 | :accessor radio-menu-item-value |
711 | :documentation "Value passed as argument to the activate callback"))) |
560af5c5 |
712 | |
5b51dee1 |
713 | ("GtkLayout" |
714 | :slots |
715 | ((bin-window |
1047e159 |
716 | :allocation :virtual |
5b51dee1 |
717 | :getter "gtk_layout_get_bin_window" |
718 | :reader layout-bin-window |
f784870f |
719 | :type gdk:window))) |
f5b67f2b |
720 | |
721 | ("GtkFixed" |
722 | :slots |
723 | ((has-window |
1047e159 |
724 | :allocation :virtual |
f5b67f2b |
725 | :getter "gtk_fixed_get_has_window" |
726 | :setter "gtk_fixed_set_has_window" |
727 | :reader fixed-has-window-p |
728 | :initarg :has-window |
729 | :type boolean))) |
1047e159 |
730 | |
731 | ("GtkRange" |
732 | :slots |
733 | ((value |
734 | :allocation :virtual |
735 | :getter "gtk_range_get_value" |
736 | :setter "gtk_range_set_value" |
737 | :initarg :value |
738 | :accessor range-value |
739 | :type double-float) |
740 | (upper |
741 | :allocation :virtual |
742 | :getter range-upper |
743 | :setter (setf range-upper) |
744 | :initarg :upper) |
745 | (lower |
746 | :allocation :virtual |
747 | :getter range-lower |
748 | :setter (setf range-lower) |
749 | :initarg :lower) |
750 | (step-increment |
751 | :allocation :virtual |
752 | :getter range-step-increment |
753 | :setter (setf range-step-increment) |
754 | :initarg :step-increment) |
755 | (page-increment |
756 | :allocation :virtual |
757 | :getter range-page-increment |
758 | :setter (setf range-page-increment) |
759 | :initarg :page-increment))) |
760 | |
761 | ("GtkImage" |
762 | :slots |
d76e9fca |
763 | ((file :ignore t) |
b6d4ac86 |
764 | #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.6.0") |
d76e9fca |
765 | (pixel-size :merge t :unbound -1))) |
766 | |
767 | ("GtkLabel" |
768 | :slots |
769 | ((layout |
770 | :allocation :virtual |
771 | :getter "gtk_label_get_layout" |
772 | :reader label-layout |
773 | :type pango:layout))) |
774 | |
68f519e0 |
775 | ("GtkScale" |
776 | :slots |
777 | ((layout |
778 | :allocation :virtual |
779 | :getter "gtk_scale_get_layout" |
780 | :reader scale-layout |
781 | :type pango:layout))) |
782 | |
1047e159 |
783 | ("GtkEditable" |
784 | :slots |
785 | ((editable |
786 | :allocation :virtual |
787 | :getter "gtk_editable_get_editable" |
788 | :setter "gtk_editable_set_editable" |
789 | :reader editable-editable-p |
790 | :initarg :editable |
791 | :type boolean) |
792 | (position |
793 | :allocation :virtual |
794 | :getter "gtk_editable_get_position" |
795 | :setter "gtk_editable_set_position" |
796 | :reader editable-position |
797 | :initarg :position |
cb4bf772 |
798 | :type position) |
1047e159 |
799 | (text |
800 | :allocation :virtual |
801 | :getter editable-text |
802 | :setter (setf editable-text) |
803 | :initarg text))) |
804 | |
805 | ("GtkFileChooser" |
806 | :slots |
807 | ((filename |
808 | :allocation :virtual |
809 | :getter "gtk_file_chooser_get_filename" |
810 | :setter "gtk_file_chooser_set_filename" |
811 | :accessor file-chooser-filename |
812 | :initarg :filename |
813 | :type string) |
814 | (current-name |
815 | :allocation :virtual |
816 | :setter "gtk_file_chooser_set_current_name" |
68f519e0 |
817 | :accessor file-chooser-current-name |
1047e159 |
818 | :initarg :current-name |
819 | :type string) |
820 | (current-folder |
821 | :allocation :virtual |
822 | :setter "gtk_file_chooser_set_current_folder" |
823 | :setter "gtk_file_chooser_get_current_folder" |
68f519e0 |
824 | :accessor file-chooser-current-folder |
1047e159 |
825 | :initarg :current-folder |
826 | :type string) |
827 | (uri |
828 | :allocation :virtual |
829 | :getter "gtk_file_chooser_get_uri" |
830 | :setter "gtk_file_chooser_set_uri" |
68f519e0 |
831 | :accessor file-chooser-uri |
1047e159 |
832 | :initarg :uri |
833 | :type string) |
834 | (current-folder-uri |
835 | :allocation :virtual |
836 | :setter "gtk_file_chooser_set_current_folder_uri" |
837 | :setter "gtk_file_chooser_get_current_folder_uri" |
68f519e0 |
838 | :accessor file-chooser-current-folder-uri |
1047e159 |
839 | :initarg :current-folder-uri |
840 | :type string))) |
841 | |
68f519e0 |
842 | ("GtkFileFilter" |
843 | :slots |
844 | ((name |
845 | :allocation :virtual |
846 | :getter "gtk_file_filter_get_name" |
847 | :setter "gtk_file_filter_set_name" |
848 | :accessor file-filter-name |
849 | :initarg :name |
850 | :type string))) |
851 | |
1a1949c7 |
852 | ("GtkTreeView" |
853 | :slots |
854 | ((columns |
855 | :allocation :virtual |
856 | :getter "gtk_tree_view_get_columns" |
857 | :reader tree-view-columns |
f4175703 |
858 | :type (glist tree-view-column)) |
859 | (selection |
860 | :allocation :virtual |
861 | :getter "gtk_tree_view_get_selection" |
862 | :reader tree-view-selection |
863 | :type tree-selection))) |
1a1949c7 |
864 | |
2a8752b0 |
865 | ("GtkTreeModel" |
866 | :slots |
867 | ((n-columns |
868 | :allocation :virtual |
869 | :getter "gtk_tree_model_get_n_columns" |
870 | :reader tree-model-n-columns |
871 | :type int))) |
872 | |
f4175703 |
873 | ("GtkTreeSelection" |
874 | :slots |
875 | ((mode |
876 | :allocation :virtual |
877 | :getter "gtk_tree_selection_get_mode" |
878 | :setter "gtk_tree_selection_set_mode" |
879 | :accessor tree-selection-mode |
880 | :initarg :mode |
881 | :type selection-mode) |
882 | (tree-view |
883 | :allocation :virtual |
884 | :getter "gtk_tree_selection_get_mode" |
885 | :reader tree-selection-mode |
886 | :type tree-view))) |
887 | |
1a1949c7 |
888 | ("GtkComboBox" |
889 | :slots |
890 | ((active-iter |
891 | :allocation :virtual |
892 | :getter "gtk_combo_box_get_active_iter" |
893 | :setter "gtk_combo_box_set_active_iter" |
894 | :accessor combo-box-active-iter |
895 | :type tree-iter))) |
896 | |
aa77651b |
897 | ("GtkTextBuffer" |
898 | :slots |
899 | ((line-count |
900 | :allocation :virtual |
901 | :getter "gtk_text_buffer_get_line_count" |
902 | :reader text-buffer-line-count |
903 | :type int) |
904 | (char-count |
905 | :allocation :virtual |
906 | :getter "gtk_text_buffer_get_char_count" |
907 | :reader text-buffer-char-count |
908 | :type int) |
909 | (modified |
910 | :allocation :virtual |
911 | :getter "gtk_text_buffer_get_modified" |
912 | :setter "gtk_text_buffer_set_modified" |
913 | :accessor text-buffer-modifed-p |
914 | :type boolean))) |
915 | |
5e17fb78 |
916 | ("GtkTextView" |
917 | :slots |
918 | ((default-attributes |
919 | :allocation :virtual |
920 | :getter "gtk_text_view_get_default_attributes" |
921 | :reader text-view-default-attributes |
922 | :type text-attributes))) |
923 | |
aa77651b |
924 | ("GtkTextTagTable" |
925 | :slots |
926 | ((size |
927 | :allocation :virtual |
928 | :getter "gtk_text_tag_table_get_size" |
929 | :reader text-tag-table-size |
930 | :type int))) |
931 | |
932 | ("GtkTextTag" |
933 | :slots |
934 | ((priority |
935 | :allocation :virtual |
936 | :getter "gtk_text_tag_get_priority" |
937 | :setter "gtk_text_tag_set_priority" |
938 | :accessor text-tag-priority |
939 | :type int) |
940 | (weight |
941 | :merge t :type pango:weight))) |
942 | |
0763f21d |
943 | ("GtkTextMark" |
944 | :slots |
945 | ((buffer |
946 | :allocation :virtual |
947 | :getter "gtk_text_mark_get_buffer" |
948 | :reader text-mark-buffer |
949 | :type text-buffer) |
950 | (name |
951 | :allocation :virtual |
952 | :getter "gtk_text_mark_get_name" |
953 | :reader text-mark-name |
954 | :type string) |
955 | (visible |
956 | :allocation :virtual |
957 | :getter "gtk_text_mark_get_visible" |
958 | :setter "gtk_text_mark_set_visible" |
959 | :accessor text-mark-visible-p |
960 | :type boolean) |
961 | (deleted |
962 | :allocation :virtual |
963 | :getter "gtk_text_mark_get_deleted" |
964 | :reader text-mark-deleted-p |
965 | :type boolean) |
966 | (left-gravity |
967 | :allocation :virtual |
968 | :getter "gtk_text_mark_get_left_gravity" |
969 | :reader text-mark-left-gravity-p |
970 | :type boolean))) |
971 | |
5e17fb78 |
972 | ("GtkUIManager" |
973 | :type ui-manager |
974 | :slots |
975 | ((action-groups |
976 | :allocation :virtual |
977 | :getter "gtk_ui_manager_get_action_groups" |
978 | :reader ui-manager-action-groups |
979 | :type (copy-of (glist action-group))) |
980 | (accel-group |
981 | :allocation :virtual |
982 | :getter "gtk_ui_manager_get_accel_group" |
983 | :reader ui-manager-accel-group |
984 | :type accel-group))) |
985 | |
986 | ("GtkUIManagerItemType" |
987 | :type ui-manager-item-type) |
988 | |
a5522de5 |
989 | ("GtkAction" |
5e17fb78 |
990 | :slots |
991 | ((accelerator |
a5522de5 |
992 | :allocation :user-data :initarg :accelerator |
993 | :reader action-accelerator))) |
5e17fb78 |
994 | |
995 | ("GtkToggleAction" |
996 | :slots |
997 | ((active |
998 | :allocation :virtual |
999 | :getter "gtk_toggle_action_get_active" |
1000 | :setter "gtk_toggle_action_set_active" |
0c9b7932 |
1001 | ; :initarg :active |
5e17fb78 |
1002 | :accessor toggle-action-active-p |
1003 | :type boolean))) |
1004 | |
1005 | ("GtkRadioAction" |
1006 | :slots |
1007 | ((group |
1008 | :allocation :virtual |
1009 | :getter "gtk_radio_button_get_group" |
d76e9fca |
1010 | :reader radio-action-group |
5e17fb78 |
1011 | :type (copy-of (gslist widget))) |
a5522de5 |
1012 | (self |
1013 | :allocation :property :pname "value" :type int |
1014 | :documentation "A hack so we can use the alien function gtk_radio_action_get_current_value to retrieve the active radio action in a group.") |
5e17fb78 |
1015 | (value |
a5522de5 |
1016 | :allocation :user-data :initarg :value :accessor radio-action-value))) |
2a8752b0 |
1017 | |
68f519e0 |
1018 | ("GtkColorSelection" |
1019 | :slots |
1020 | ((previous-alpha |
1021 | :allocation :virtual |
1022 | :getter "gtk_color_selection_get_previous_alpha" |
1023 | :setter "gtk_color_selection_get_previous_alpha" |
1024 | :initarg :previous-alpha |
1025 | :accessor color-selection-previous-alpha |
1026 | :type (unsigned 16)) |
1027 | (previous-color |
1028 | :allocation :virtual |
1029 | :getter "gtk_color_selection_get_previous_color" |
1030 | :setter "gtk_color_selection_get_previous_color" |
1031 | :initarg :previous-color |
1032 | :accessor color-selection-previous-color |
1033 | :type gdk:color))) |
1034 | |
1035 | ("GtkFontSelection" |
1036 | :slots |
1037 | ; deprecated property |
1038 | ((font :ignore t))) |
aa77651b |
1039 | |
647c99e5 |
1040 | ("GtkClipboard" |
1041 | :slots |
1042 | ((display |
1043 | :allocation :virtual |
1044 | :getter "gtk_clipboard_get_display" |
1045 | :reader clipboard-display |
1046 | :type gdk:display))) |
1047 | |
b6d4ac86 |
1048 | #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.6.0") |
43e260ae |
1049 | ("GtkIconView" |
1050 | :slots |
c46ca281 |
1051 | ((text-column |
1052 | :allocation :virtual |
1053 | :getter %icon-view-get-text-column |
1054 | :setter %icon-view-set-text-column |
1055 | :boundp %icon-view-text-column-boundp |
1056 | :initarg :text-column |
1057 | :accessor icon-view-text-column) |
1058 | (markup-column |
1059 | :allocation :virtual |
1060 | :getter %icon-view-get-markup-column |
1061 | :setter %icon-view-set-tmarkup-column |
1062 | :boundp %icon-view-markup-column-boundp |
1063 | :initarg :markup-column |
1064 | :accessor icon-view-markup-column) |
1065 | (pixbuf-column |
1066 | :allocation :virtual |
1067 | :getter %icon-view-get-pixbuf-column |
1068 | :setter %icon-view-set-pixbuf-column |
1069 | :boundp %icon-view-pixbuf-column-boundp |
1070 | :initarg :pixbuf-column |
1071 | :accessor icon-view-pixbuf-column))) |
647c99e5 |
1072 | |
5b51dee1 |
1073 | ;; Not needed |
1074 | ("GtkFundamentalType" :ignore t) |
1075 | ("GtkArgFlags" :ignore t) |
560af5c5 |
1076 | |
d520140e |
1077 | |
5b51dee1 |
1078 | ;; Deprecated widgets |
1079 | ("GtkCList" :ignore-prefix t) |
1080 | ("GtkCTree" :ignore-prefix t) |
1a1949c7 |
1081 | ("GtkList" :ignore t) |
1082 | ("GtkListItem" :ignore t) |
5b51dee1 |
1083 | ("GtkTree" :ignore t) |
1084 | ("GtkTreeItem" :ignore t) |
1a1949c7 |
1085 | ("GtkItemFactory" :ignore t) |
5e17fb78 |
1086 | ("GtkText" :ignore t) |
5b51dee1 |
1087 | ("GtkPacker" :ignore-prefix t) |
1088 | ("GtkPixmap" :ignore t) |
1089 | ("GtkPreview" :ignore-prefix t) |
1a1949c7 |
1090 | ("GtkProgres" :ignore t) |
5b51dee1 |
1091 | ("GtkTipsQuery" :ignore t) |
1047e159 |
1092 | ("GtkOldEditable" :ignore t) |
1a1949c7 |
1093 | ("GtkCombo" :ignore t) |
1094 | ("GtkOptionMenu" :ignore t) |
68f519e0 |
1095 | ("GtkFileSelection" :ignore t) |
1096 | ("GtkInputDialog") |
1047e159 |
1097 | |
1098 | ;; What are these? |
1099 | ("GtkFileSystemModule" :ignore t) |
1100 | ("GtkIMModule" :ignore t) |
fa60e0a2 |
1101 | ("GtkThemeEngine" :ignore t)) |
aa77651b |
1102 | |
1103 | |
1104 | (defclass text-iter (boxed) |
1105 | ((buffer |
1106 | :allocation :virtual |
1107 | :getter "gtk_text_iter_get_buffer" |
1108 | :reader text-iter-buffer |
68f519e0 |
1109 | :type pointer) ;text-buffer) |
aa77651b |
1110 | (offset |
1111 | :allocation :virtual |
1112 | :getter "gtk_text_iter_get_offset" |
1113 | :setter "gtk_text_iter_set_offset" |
1114 | :accessor text-iter-offset |
1115 | :type int) |
1116 | (line |
1117 | :allocation :virtual |
1118 | :getter "gtk_text_iter_get_line" |
1119 | :setter "gtk_text_iter_set_line" |
1120 | :accessor text-iter-line |
1121 | :type int) |
1122 | (line-offset |
1123 | :allocation :virtual |
1124 | :getter "gtk_text_iter_get_line_offset" |
1125 | :setter "gtk_text_iter_set_line_offset" |
1126 | :accessor text-iter-line-offset |
1127 | :type int) |
1128 | (line-index |
1129 | :allocation :virtual |
1130 | :getter "gtk_text_iter_get_line_index" |
1131 | :setter "gtk_text_iter_set_line_index" |
1132 | :accessor text-iter-line-index |
1133 | :type int) |
1134 | (visible-line-index |
1135 | :allocation :virtual |
1136 | :getter "gtk_text_iter_get_visible_line_index" |
1137 | :setter "gtk_text_iter_set_visible_line_index" |
1138 | :accessor text-iter-visible-line-index |
1139 | :type int) |
1140 | (visible-line-offset |
1141 | :allocation :virtual |
1142 | :getter "gtk_text_iter_get_visible_line_offset" |
1143 | :setter "gtk_text_iter_set_visible_line_offset" |
1144 | :accessor text-iter-visible-line-offset |
163a08aa |
1145 | :type int)) |
1146 | (:metaclass boxed-class) |
1147 | (:size #.(* 14 (size-of 'pointer)))) |
d76e9fca |
1148 | |
1149 | |
1150 | (defclass tooltips-data (struct) |
1151 | ((tooltips |
1152 | :allocation :alien |
1153 | :reader tooltips-data-tooltips |
1154 | :type tooltips) |
1155 | (widget |
1156 | :allocation :alien |
1157 | :reader tooltips-data-widget |
1158 | :type widget) |
1159 | (tip-text |
1160 | :allocation :alien |
1161 | :reader tooltips-data-tip-text |
1162 | :type string) |
1163 | (tip-private |
1164 | :allocation :alien |
1165 | :reader tooltips-data-tip-private |
1166 | :type string)) |
1167 | (:metaclass struct-class)) |
68f519e0 |
1168 | |
1169 | (defclass file-filter-info (struct) |
1170 | ((contains |
1171 | :allocation :alien |
1172 | :initarg :contains |
1173 | :type file-filter-flags) |
1174 | (filename |
1175 | :allocation :alien |
1176 | :initarg :filename |
1177 | :type string) |
1178 | (uri |
1179 | :allocation :alien |
1180 | :initarg :uri |
1181 | :type string) |
1182 | (display-name |
1183 | :allocation :alien |
1184 | :initarg :display-name |
1185 | :type string) |
1186 | (mime-type |
1187 | :allocation :alien |
1188 | :initarg :mime-type |
1189 | :type string)) |
1190 | (:metaclass struct-class)) |
eacab64f |
1191 | |
1192 | |
1193 | (defclass accel-key (struct) |
1194 | ((key |
1195 | :allocation :alien |
1196 | :type unsigned-int) |
1197 | (modifiers |
1198 | :allocation :alien |
1199 | :type gdk:modifier-type) |
1200 | (flags |
1201 | :allocation :alien |
1202 | :type (unsigned 16))) |
1203 | (:metaclass struct-class)) |
1204 | |
1205 | (defclass accel-group-entry (struct) |
1206 | ((key |
1207 | :allocation :alien |
1208 | :setter nil |
1209 | :type (inlined accel-key)) |
1210 | (gclosure |
1211 | :allocation :alien |
1212 | :type gclosure) |
1213 | (accel_path_quark |
1214 | :allocation :alien |
1215 | :type quark)) |
1216 | (:metaclass struct-class)) |
bdc0e300 |
1217 | |
b6d4ac86 |
1218 | #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.8.0") |
bdc0e300 |
1219 | (define-enum-type drop-position |
1220 | :no-drop :drop-into :drop-left :drop-right :drop-above :drop-below) |
163a08aa |
1221 | |
1222 | |
163a08aa |
1223 | (defclass target-entry (struct) |
1224 | ((target |
1225 | :allocation :alien |
1226 | :accessor target-entry-target |
1227 | :initarg :target |
1228 | :type string) |
1229 | (flags |
1230 | :allocation :alien |
1231 | :accessor target-entry-flags |
1232 | :initarg :flags |
1233 | :type target-flags) |
1234 | (id |
1235 | :allocation :alien |
1236 | :accessor target-entry-id |
1237 | :initarg :id |
1238 | :type unsigned-int)) |
1239 | (:metaclass struct-class)) |
1240 | |
18c83e09 |
1241 | |
1242 | (defclass selection-data (boxed) |
1243 | ((selection |
1244 | :allocation :alien :type gdk:atom |
1245 | :reader selection-data-selection) |
1246 | (target |
1247 | :allocation :alien :type gdk:atom |
1248 | :reader selection-data-target) |
1249 | (type |
1250 | :allocation :alien :type gdk:atom |
1251 | :reader selection-data-type) |
1252 | (format |
1253 | :allocation :alien :type int |
1254 | :reader selection-data-format) |
1255 | (data |
1256 | :allocation :alien :type pointer |
1257 | :reader selection-data-data) |
1258 | (length |
1259 | :allocation :alien :type int |
1260 | :reader selection-data-length) |
1261 | (display |
1262 | :allocation :alien :type gdk:display |
1263 | :reader selection-data-display)) |
1264 | (:metaclass boxed-class)) |
1265 | |
1266 | |
1267 | (defclass target-list (proxy) |
1268 | () |
b6d4ac86 |
1269 | (:metaclass proxy-class) |
1270 | (:ref target-list-ref) |
1271 | (:unref target-list-unref)) |