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 | |
14021fee |
23 | ;; $Id: gtktypes.lisp,v 1.65 2008-10-27 18:42:01 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 |
31d990e5 |
44 | :accessor allocation-x |
e6d40e16 |
45 | :initarg :x |
46 | :type int) |
47 | (y |
48 | :allocation :alien |
31d990e5 |
49 | :accessor allocation-y |
50 | :initarg :y |
e6d40e16 |
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 | |
14021fee |
157 | ("GtkMountOperation" :ignore t) ; Needs GIO |
158 | |
5b51dee1 |
159 | ;; Manual override |
160 | ("GtkWidget" |
161 | :slots |
c289d084 |
162 | ((child-properties |
b19bbc94 |
163 | :special t |
c289d084 |
164 | :accessor widget-child-properties |
1047e159 |
165 | :type container-child) |
5b51dee1 |
166 | (window |
167 | :allocation :virtual |
168 | :getter "gtk_widget_get_window" |
169 | :reader widget-window |
170 | :type gdk:window) |
c2a12566 |
171 | (parent :merge t :initarg nil) |
172 | (visible :merge t :initarg nil) |
68f519e0 |
173 | (parent-window |
174 | :allocation :virtual |
175 | :getter %widget-parent-window |
176 | :setter "gtk_widget_set_parent_window" |
177 | :accessor widget-parent-window |
178 | :initarg :parent-window |
179 | :type gdk:window) |
5b51dee1 |
180 | (state |
181 | :allocation :virtual |
182 | :getter "gtk_widget_get_state" |
183 | :setter "gtk_widget_set_state" |
184 | :accessor widget-state |
185 | :initarg :state |
186 | :type state-type) |
187 | (colormap |
188 | :allocation :virtual |
189 | :getter "gtk_widget_get_colormap" |
e6d40e16 |
190 | :setter "gtk_widget_set_colormap" |
191 | :initarg :colormap |
192 | :accessor widget-colormap |
5b51dee1 |
193 | :type gdk:colormap) |
194 | (visual |
195 | :allocation :virtual |
196 | :getter "gtk_widget_get_visual" |
197 | :reader widget-visual |
e6d40e16 |
198 | :type gdk:visual) |
199 | (direction |
200 | :allocation :virtual |
201 | :getter "gtk_widget_get_direction" |
202 | :setter "gtk_widget_set_direction" |
203 | :accessor widget-direction |
204 | :initarg :direction |
205 | :type text-direction) |
206 | (composite-name |
207 | :allocation :virtual |
208 | :getter "gtk_widget_get_composite_name" |
209 | :setter "gtk_widget_set_composite_name" |
210 | :accessor widget-composite-name |
211 | :initarg :composite-name |
68f519e0 |
212 | :type (copy-of string)) ; will leak the string when setting |
e6d40e16 |
213 | (settings |
214 | :allocation :virtual |
215 | :getter "gtk_widget_get_settings" |
216 | :accessor widget-settings |
217 | :type settings) |
218 | (child-visible |
219 | :allocation :virtual |
220 | :getter "gtk_widget_get_child_visible" |
221 | :setter "gtk_widget_set_child_visible" |
222 | :accessor widget-child-visible-p |
223 | :initarg :child-visible |
aa77651b |
224 | :type boolean) |
225 | (width-request |
226 | :merge t :unbound -1) |
227 | (height-request |
00485707 |
228 | :merge t :unbound -1) |
229 | #?-(pkg-exists-p "gtk+-2.0" :atleast-version "2.12.0") |
230 | (tooltip-window |
231 | :allocation :virtual |
232 | :getter "gtk_widget_get_tooltip_window" |
233 | :setter "gtk_widget_set_tooltip_window" |
234 | :accessor widget-tooltip-window |
235 | :initarg :tooltip-window |
236 | :type window))) |
e6d40e16 |
237 | |
5b51dee1 |
238 | ("GtkContainer" |
239 | :slots |
d76e9fca |
240 | ((child :ignore t) |
5b51dee1 |
241 | (children |
242 | :allocation :virtual |
d76e9fca |
243 | :setter (setf container-children) |
b6d4ac86 |
244 | :getter "gtk_container_get_children" |
245 | :reader container-children |
246 | :type (glist (copy-of widget))) |
247 | (internal-children ; for debugging |
248 | :allocation :virtual |
249 | :getter container-internal-children) |
d76e9fca |
250 | (child-type |
251 | :allocation :virtual |
cb4bf772 |
252 | :getter "gtk_container_child_type" |
d76e9fca |
253 | :reader container-child-type |
254 | :type gtype) |
5b51dee1 |
255 | (focus-child |
256 | :allocation :virtual |
257 | :getter "gtk_container_get_focus_child" |
258 | :setter "gtk_container_set_focus_child" |
259 | :accessor container-focus-child |
260 | :initarg :focus-child |
261 | :type widget) |
e6d40e16 |
262 | (focus-chain |
263 | :allocation :virtual |
264 | :getter container-focus-chain |
265 | :setter (setf container-focus-chain)) |
5b51dee1 |
266 | (focus-hadjustment |
267 | :allocation :virtual |
268 | :getter "gtk_container_get_focus_hadjustment" |
269 | :setter "gtk_container_set_focus_hadjustment" |
270 | :accessor container-focus-hadjustment |
271 | :initarg :focus-hadjustment |
272 | :type adjustment) |
273 | (focus-vadjustment |
274 | :allocation :virtual |
275 | :getter "gtk_container_get_focus_vadjustment" |
276 | :setter "gtk_container_set_focus_vadjustment" |
277 | :accessor container-focus-vadjustment |
278 | :initarg :focus-vadjustment |
d76e9fca |
279 | :type adjustment) |
280 | (reallocate-redraws |
281 | :allocation :virtual |
282 | :getter "gtk_container_get_reallocate_redraws" |
283 | :setter "gtk_container_set_reallocate_redraws" |
284 | :accessor container-reallocate-redraws |
285 | :initarg :reallocate-redraws |
286 | :type boolean))) |
5b51dee1 |
287 | |
288 | ("GtkBin" |
289 | :slots |
290 | ((child |
291 | :allocation :virtual |
56460319 |
292 | :getter "gtk_bin_get_child" |
293 | :setter (setf bin-child) |
294 | :reader bin-child |
295 | :type widget))) |
3f73963b |
296 | |
297 | ("GtkWindow" |
298 | :slots |
4d16221f |
299 | ((focus-widget |
3f73963b |
300 | :allocation :virtual |
301 | :getter "gtk_window_get_focus" |
302 | :setter "gtk_window_set_focus" |
303 | :accessor window-focus-widget |
304 | :initarg :focus-widget |
305 | :type widget) |
306 | (default-widget |
307 | :allocation :virtual |
308 | :getter "gtk_window_get_default" |
309 | :setter "gtk_window_set_default" |
310 | :accessor window-default-widget |
311 | :initarg :default-widget |
312 | :type widget) |
3f73963b |
313 | (has-frame |
314 | :allocation :virtual |
315 | :getter "gtk_window_get_has_frame" |
316 | :setter "gtk_window_set_has_frame" |
317 | :accessor window-has-frame-p |
318 | :initarg :has-frame |
319 | :type boolean) |
4d16221f |
320 | (icon-list |
3f73963b |
321 | :allocation :virtual |
b049d554 |
322 | :getter %window-get-icon-list |
4d16221f |
323 | :setter "gtk_window_set_icon_list" |
324 | :accessor window-icon-list |
325 | :initarg :icon-list |
326 | :type (glist gdk:pixbuf)) |
3f73963b |
327 | (mnemonic-modifier |
328 | :allocation :virtual |
329 | :getter "gtk_window_get_mnemonic_modifier" |
330 | :setter "gtk_window_set_mnemonic_modifier" |
331 | :accessor window-mnemonic-modifier |
332 | :initarg :mnemonic-modifier |
333 | :type gdk:modifier-type) |
4007604e |
334 | #?-(pkg-exists-p "gtk+-2.0" :atleast-version "2.10.0") |
3f73963b |
335 | (transient-for |
336 | :allocation :virtual |
337 | :getter "gtk_window_get_transient_for" |
338 | :setter "gtk_window_set_transient_for" |
339 | :accessor window-transient-for |
340 | :initarg :transient-for |
4d16221f |
341 | :type window) |
342 | (group |
343 | :allocation :virtual |
344 | :getter "gtk_window_get_group" |
345 | :setter (setf window-group) |
346 | :reader window-group |
347 | :initarg :group |
348 | :type window-group) |
349 | (default-width :merge t :unbound -1) |
350 | (default-height :merge t :unbound -1))) |
5b51dee1 |
351 | |
4d16221f |
352 | ("GtkWindowGroup" |
b6d4ac86 |
353 | :dependencies (window) |
4d16221f |
354 | :slots |
355 | ((grabs |
356 | :allocation :alien |
357 | :accessor window-group-grabs |
358 | :type (gslist window)))) |
359 | |
5b51dee1 |
360 | ("GtkTooltips" |
361 | :slots |
362 | ((enabled |
363 | :allocation :virtual |
364 | :getter "gtk_tooltips_get_enabled" |
365 | :setter (setf tooltips-enabled-p) |
366 | :reader tooltips-enabled-p |
367 | :initarg :enabled |
368 | :type boolean))) |
369 | |
5b51dee1 |
370 | ("GtkMenuItem" |
371 | :slots |
372 | ((label |
373 | :allocation :virtual |
f5b67f2b |
374 | :getter menu-item-label |
375 | :setter (setf menu-item-label) |
5b51dee1 |
376 | :type string) |
d76e9fca |
377 | (use-underline |
378 | :allocation :user-data |
379 | :initform nil |
380 | :initarg :use-underline |
381 | :accessor menu-item-use-underline-p) |
f5b67f2b |
382 | (right-justified |
383 | :allocation :virtual |
384 | :getter "gtk_menu_item_get_right_justified" |
385 | :setter "gtk_menu_item_set_right_justified" |
386 | :accessor menu-item-right-justified-p |
387 | :initarg :right-justified |
388 | :type boolean) |
00485707 |
389 | #?-(pkg-exists-p "gtk+-2.0" :atleast-version "2.12.0") |
5b51dee1 |
390 | (submenu |
391 | :allocation :virtual |
392 | :getter "gtk_menu_item_get_submenu" |
d76e9fca |
393 | :setter "gtk_menu_item_set_submenu" |
394 | :accessor menu-item-submenu |
5b51dee1 |
395 | :initarg :submenu |
d76e9fca |
396 | :type widget))) |
5b51dee1 |
397 | |
bdc0e300 |
398 | ("GtkMenuShell" |
399 | :slots |
400 | ((take-focus-p |
401 | :allocation :virtual |
402 | :getter "gtk_menu_shell_get_take_focus" |
403 | :setter "gtk_menu_shell_set_take_focus" |
404 | :accessor menu-shell-take-focus-p |
405 | :type boolean))) |
406 | |
5b51dee1 |
407 | ("GtkColorSelectionDialog" |
408 | :slots |
409 | ((colorsel |
410 | :allocation :alien |
411 | :reader color-selection-dialog-colorsel |
412 | :type widget) |
413 | (ok-button |
414 | :allocation :alien |
415 | :reader color-selection-dialog-ok-button |
416 | :type widget) |
417 | (cancel-button |
418 | :allocation :alien |
419 | :reader color-selection-dialog-cancel-button |
420 | :type widget) |
421 | (help-button |
422 | :allocation :alien |
423 | :reader color-selection-dialog-help-button |
424 | :type widget))) |
425 | |
426 | ("GtkScrolledWindow" |
427 | :slots |
b6d4ac86 |
428 | (#?-(pkg-exists-p "gtk+-2.0" :atleast-version "2.8.0") |
bdc0e300 |
429 | (hscrollbar |
430 | :allocation :alien |
5b51dee1 |
431 | :reader scrolled-window-hscrollbar |
432 | :type widget) |
b6d4ac86 |
433 | #?-(pkg-exists-p "gtk+-2.0" :atleast-version "2.8.0") |
5b51dee1 |
434 | (vscrollbar |
435 | :allocation :alien |
436 | :reader scrolled-window-vscrollbar |
bdc0e300 |
437 | :type widget) |
b6d4ac86 |
438 | #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.8.0") |
bdc0e300 |
439 | (hscrollbar |
440 | :allocation :virtual |
441 | :getter "gtk_scrolled_window_get_hscrollbar" |
442 | :reader scrolled-window-hscrollbar |
443 | :type widget) |
b6d4ac86 |
444 | #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.8.0") |
bdc0e300 |
445 | (vscrollbar |
446 | :allocation :virtual |
b6d4ac86 |
447 | :getter "gtk_scrolled_window_get_vscrollbar" |
bdc0e300 |
448 | :reader scrolled-window-vscrollbar |
5b51dee1 |
449 | :type widget))) |
560af5c5 |
450 | |
5b51dee1 |
451 | ("GtkPaned" |
1047e159 |
452 | :slots |
5b51dee1 |
453 | ((child1 |
560af5c5 |
454 | :allocation :virtual |
1dd03ab8 |
455 | :getter "gtk_paned_get_child1" |
456 | :setter "gtk_paned_add1" |
457 | :accessor paned-child1 |
5b51dee1 |
458 | :initarg :child1 |
560af5c5 |
459 | :type widget) |
5b51dee1 |
460 | (child2 |
2d379b6a |
461 | :allocation :virtual |
1dd03ab8 |
462 | :getter "gtk_paned_get_child2" |
463 | :setter "gtk_paned_add2" |
464 | :accessor paned-child2 |
5b51dee1 |
465 | :initarg :child2 |
466 | :type widget))) |
560af5c5 |
467 | |
5b51dee1 |
468 | ("GtkMenu" |
469 | :slots |
470 | ((accel-group |
471 | :allocation :virtual |
472 | :getter "gtk_menu_get_accel_group" |
473 | :setter "gtk_menu_set_accel_group" |
474 | :accessor menu-accel-group |
475 | :initarg :accel-group |
476 | :type accel-group) |
477 | (active |
478 | :allocation :virtual |
479 | :getter "gtk_menu_get_active" |
480 | :setter (setf menu-active) |
481 | :reader menu-active |
482 | :initarg :active |
483 | :type widget) |
d76e9fca |
484 | (screen |
485 | :allocation :virtual |
486 | :getter "gtk_menu_get_screen" |
487 | :setter "gtk_menu_set_screen" |
488 | :accessor menu-screen |
489 | :initarg :screen |
490 | :type gdk:screen) |
491 | (attach-widget |
492 | :allocation :virtual |
493 | :getter "gtk_menu_get_attach_widget" |
494 | :reader menu-attach-widget |
495 | :type widget) |
b6d4ac86 |
496 | #?-(pkg-exists-p "gtk+-2.0" :atleast-version "2.6.0") |
d76e9fca |
497 | (tearoff-state |
5b51dee1 |
498 | :allocation :virtual |
499 | :getter "gtk_menu_get_tearoff_state" |
500 | :setter "gtk_menu_set_tearoff_state" |
d76e9fca |
501 | :accessor menu-tearoff-state-p |
502 | :initarg :tearoff-state |
5b51dee1 |
503 | :type boolean))) |
504 | |
8db41d01 |
505 | ("GtkPlug" |
506 | :slots |
507 | ((id |
508 | :allocation :virtual |
509 | :getter "gtk_plug_get_id" |
510 | :reader plug-id |
511 | :type gdk:native-window))) |
512 | |
513 | ("GtkSocket" |
514 | :slots |
515 | ((id |
516 | :allocation :virtual |
517 | :getter "gtk_socket_get_id" |
518 | :reader socket-id |
519 | :type gdk:native-window))) |
520 | |
5b51dee1 |
521 | ("GtkToolbar" |
522 | :slots |
4007604e |
523 | ((show-tooltips ;; this slot is equivalent to the property |
524 | :allocation :virtual ;; "tooltips" in Gtk+ 2.8 |
5b51dee1 |
525 | :getter "gtk_toolbar_get_tooltips" |
526 | :setter "gtk_toolbar_set_tooltips" |
cb4bf772 |
527 | :accessor toolbar-show-tooltips-p |
528 | :initarg :show-tooltips |
5b51dee1 |
529 | :type boolean) |
cb4bf772 |
530 | (tooltips |
5b51dee1 |
531 | :allocation :virtual |
cb4bf772 |
532 | :getter "gtk_toolbar_get_tooltips_object" |
533 | :reader toolbar-tooltips |
534 | :type tooltips) |
4007604e |
535 | (toolbar-style ; defined manually to get the accesssor name correct |
1047e159 |
536 | :allocation :property |
537 | :pname "toolbar-style" |
538 | :initarg :toolbar-style |
539 | :accessor toolbar-style |
cb4bf772 |
540 | :type toolbar-style) |
541 | (n-items |
542 | :allocation :virtual |
543 | :getter "gtk_toolbar_get_n_items" |
544 | :reader toolbar-n-items |
545 | :type int))) |
5b51dee1 |
546 | |
d76e9fca |
547 | ("GtkToolItem" |
548 | :slots |
cb4bf772 |
549 | ((use-drag-window |
d76e9fca |
550 | :allocation :virtual |
cb4bf772 |
551 | :getter "gtk_tool_item_get_use_drag_window" |
552 | :setter "gtk_tool_item_set_use_drag_window" |
553 | :accessor tool-item-use-drag-window-p |
d76e9fca |
554 | :initarg :drag-window |
cb4bf772 |
555 | :type boolean) |
556 | (tip-text |
557 | :allocation :user-data |
558 | :setter (setf tool-item-tip-text) |
559 | :initarg :tip-text |
560 | :reader tool-item-tip-text) |
561 | (tip-private |
562 | :allocation :user-data |
563 | :setter (setf tool-item-tip-private) |
564 | :initarg :tip-private |
565 | :reader tool-item-tip-private))) |
566 | |
567 | ("GtkToolButton" |
568 | :slots |
569 | ((stock-id :merge t :initarg :stock) |
570 | (icon-widget :merge t :initarg :icon))) |
d76e9fca |
571 | |
572 | ("GtkToggleToolButton" |
573 | :slots |
574 | ((active |
575 | :allocation :virtual |
576 | :getter "gtk_toggle_tool_button_get_active" |
9c35ab2a |
577 | :setter "gtk_toggle_tool_button_set_active" |
d76e9fca |
578 | :accessor toggle-tool-button-active-p |
579 | :initarg :active |
580 | :type boolean))) |
581 | |
582 | ("GtkRadioToolButton" |
583 | :slots |
584 | ((group |
585 | :allocation :virtual |
586 | :getter "gtk_radio_tool_button_get_group" |
587 | :reader radio-tool-button-group |
cb4bf772 |
588 | :type (copy-of (gslist widget))) |
589 | (value |
590 | :allocation :user-data |
591 | :initarg :value |
592 | :accessor radio-tool-button-value |
593 | :documentation "Value passed as argument to the activate callback"))) |
d76e9fca |
594 | |
f5b67f2b |
595 | ("GtkNotebook" |
596 | :slots |
597 | ((current-page |
598 | :allocation :virtual |
68f519e0 |
599 | :getter %notebook-current-page |
f5b67f2b |
600 | :setter (setf notebook-current-page) |
68f519e0 |
601 | :reader notebook-current-page |
602 | :type widget |
f5b67f2b |
603 | :initarg :current-page) |
68f519e0 |
604 | (current-page-num |
605 | :allocation :virtual |
606 | :getter "gtk_notebook_get_current_page" |
607 | :setter "gtk_notebook_set_current_page" |
608 | :unbound -1 |
609 | :initarg :current-page-num |
610 | :accessor notebook-current-page-num |
611 | :type position))) |
f5b67f2b |
612 | |
5b51dee1 |
613 | ("GtkRuler" |
614 | :slots |
615 | ((metric |
616 | :allocation :virtual |
617 | :getter "gtk_ruler_get_metric" |
618 | :setter "gtk_ruler_set_metric" |
619 | :accessor ruler-metric |
620 | :initarg :metric |
621 | :type metric-type))) |
622 | |
623 | ("GtkProgressBar" |
624 | :slots |
625 | ; deprecated properties |
626 | ((bar-style :ignore t) |
627 | (adjustment :ignore t) |
628 | (activity-step :ignore t) |
629 | (activity-blocks :ignore t) |
630 | (discrete-blocks :ignore t))) |
631 | |
d76e9fca |
632 | ("GtkHandleBox" |
633 | :slots |
634 | ; deprecated property |
635 | ((shadow :ignore t))) |
636 | |
637 | ("GtkFrame" |
638 | :slots |
639 | ; deprecated property |
640 | ((shadow :ignore t))) |
641 | |
03c0a828 |
642 | ("GtkTable" |
643 | :slots |
644 | ((column-spacing |
645 | :allocation :property :pname "column-spacing" |
646 | :initarg :column-spacing |
647 | :type unsigned-int) |
648 | (row-spacing |
649 | :allocation :property :pname "row-spacing" |
650 | :initarg :row-spacing |
651 | :type unsigned-int))) |
5b51dee1 |
652 | |
653 | ("GtkDialog" |
654 | :slots |
1047e159 |
655 | ((vbox |
5b51dee1 |
656 | :allocation :virtual |
657 | :getter "gtk_dialog_get_vbox" |
1047e159 |
658 | :reader dialog-vbox |
5b51dee1 |
659 | :type widget) |
660 | (action-area |
661 | :allocation :virtual |
662 | :getter "gtk_dialog_get_action_area" |
663 | :reader dialog-action-area |
664 | :type widget))) |
2ed3bebb |
665 | |
d76e9fca |
666 | ("GtkEntry" |
5b51dee1 |
667 | :slots |
d76e9fca |
668 | ((layout |
5b51dee1 |
669 | :allocation :virtual |
d76e9fca |
670 | :getter "gtk_entry_get_layout" |
671 | :reader entry-layout |
672 | :type pango:layout) |
673 | (completion |
163a08aa |
674 | :allocation :virtual |
d76e9fca |
675 | :getter "gtk_entry_get_completion" |
676 | :setter "gtk_entry_set_completion" |
677 | :initarg :completion |
678 | :accessor entry-completion |
679 | :type entry-completion) |
680 | (max-length :merge t :unbound 0) |
5793ecb0 |
681 | (alignment |
682 | :allocation :virtual |
683 | :getter "gtk_entry_get_alignment" |
684 | :setter "gtk_entry_set_alignment" |
685 | :initarg :alignment |
686 | :accessor entry-alignment |
687 | :type single-float) |
b6d4ac86 |
688 | #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.6.0") |
5793ecb0 |
689 | (width-chars :merge t :unbound -1) |
690 | #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.12.0") |
691 | (cursor-adjustment |
692 | :allocation :virtual |
693 | :getter "gtk_entry_get_cursor_hadjustment" |
694 | :setter "gtk_entry_set_cursor_hadjustment" |
695 | :initarg :cursor-hadjustment |
696 | :accessor entry-cursor-hadjustment |
697 | :type adjustment))) |
d76e9fca |
698 | |
f45fd227 |
699 | ("GtkEntryCompletion" |
700 | :slots |
701 | ((entry |
702 | :allocation :virtual |
703 | :getter "gtk_entry_completion_get_entry" |
704 | :reader entry-completion-entry |
705 | :type entry) |
d76e9fca |
706 | (minimum-key-length :merge t :unbound -1) |
7ad4c933 |
707 | ;; Need to be manually defined, as this value through the property |
708 | ;; mechanism doesn't work |
b6d4ac86 |
709 | #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.6.0") |
7ad4c933 |
710 | (text-column |
711 | :allocation :virtual |
712 | :getter "gtk_entry_completion_get_text_column" |
713 | :setter "gtk_entry_completion_set_text_column" |
714 | :unbound -1 |
715 | :accessor entry-completion-text-column |
716 | :type int))) |
f45fd227 |
717 | |
5b51dee1 |
718 | ("GtkRadioButton" |
719 | :slots |
720 | ((group |
721 | :allocation :virtual |
722 | :getter "gtk_radio_button_get_group" |
723 | :reader radio-button-group |
cb4bf772 |
724 | :type (copy-of (gslist widget))) |
725 | (value |
726 | :allocation :user-data |
727 | :initarg :value |
728 | :accessor radio-button-value |
729 | :documentation "Value passed as argument to the activate callback"))) |
d520140e |
730 | |
5b51dee1 |
731 | ("GtkRadioMenuItem" |
732 | :slots |
733 | ((group |
734 | :allocation :virtual |
735 | :getter "gtk_radio_menu_item_get_group" |
736 | :reader radio-menu-item-group |
cb4bf772 |
737 | :type (copy-of (gslist widget))) |
738 | (value |
739 | :allocation :user-data |
740 | :initarg :value |
741 | :accessor radio-menu-item-value |
742 | :documentation "Value passed as argument to the activate callback"))) |
560af5c5 |
743 | |
5b51dee1 |
744 | ("GtkLayout" |
745 | :slots |
746 | ((bin-window |
1047e159 |
747 | :allocation :virtual |
5b51dee1 |
748 | :getter "gtk_layout_get_bin_window" |
749 | :reader layout-bin-window |
f784870f |
750 | :type gdk:window))) |
f5b67f2b |
751 | |
752 | ("GtkFixed" |
753 | :slots |
754 | ((has-window |
1047e159 |
755 | :allocation :virtual |
f5b67f2b |
756 | :getter "gtk_fixed_get_has_window" |
757 | :setter "gtk_fixed_set_has_window" |
758 | :reader fixed-has-window-p |
759 | :initarg :has-window |
760 | :type boolean))) |
1047e159 |
761 | |
762 | ("GtkRange" |
763 | :slots |
764 | ((value |
765 | :allocation :virtual |
766 | :getter "gtk_range_get_value" |
767 | :setter "gtk_range_set_value" |
768 | :initarg :value |
769 | :accessor range-value |
770 | :type double-float) |
771 | (upper |
772 | :allocation :virtual |
773 | :getter range-upper |
774 | :setter (setf range-upper) |
775 | :initarg :upper) |
776 | (lower |
777 | :allocation :virtual |
778 | :getter range-lower |
779 | :setter (setf range-lower) |
780 | :initarg :lower) |
781 | (step-increment |
782 | :allocation :virtual |
783 | :getter range-step-increment |
784 | :setter (setf range-step-increment) |
785 | :initarg :step-increment) |
786 | (page-increment |
787 | :allocation :virtual |
788 | :getter range-page-increment |
789 | :setter (setf range-page-increment) |
790 | :initarg :page-increment))) |
791 | |
792 | ("GtkImage" |
793 | :slots |
d76e9fca |
794 | ((file :ignore t) |
b6d4ac86 |
795 | #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.6.0") |
d76e9fca |
796 | (pixel-size :merge t :unbound -1))) |
797 | |
798 | ("GtkLabel" |
799 | :slots |
800 | ((layout |
801 | :allocation :virtual |
802 | :getter "gtk_label_get_layout" |
803 | :reader label-layout |
804 | :type pango:layout))) |
805 | |
68f519e0 |
806 | ("GtkScale" |
807 | :slots |
808 | ((layout |
809 | :allocation :virtual |
810 | :getter "gtk_scale_get_layout" |
811 | :reader scale-layout |
812 | :type pango:layout))) |
813 | |
1047e159 |
814 | ("GtkEditable" |
815 | :slots |
816 | ((editable |
817 | :allocation :virtual |
818 | :getter "gtk_editable_get_editable" |
819 | :setter "gtk_editable_set_editable" |
820 | :reader editable-editable-p |
821 | :initarg :editable |
822 | :type boolean) |
823 | (position |
824 | :allocation :virtual |
825 | :getter "gtk_editable_get_position" |
826 | :setter "gtk_editable_set_position" |
827 | :reader editable-position |
828 | :initarg :position |
cb4bf772 |
829 | :type position) |
1047e159 |
830 | (text |
831 | :allocation :virtual |
832 | :getter editable-text |
833 | :setter (setf editable-text) |
834 | :initarg text))) |
835 | |
836 | ("GtkFileChooser" |
837 | :slots |
838 | ((filename |
839 | :allocation :virtual |
840 | :getter "gtk_file_chooser_get_filename" |
841 | :setter "gtk_file_chooser_set_filename" |
842 | :accessor file-chooser-filename |
843 | :initarg :filename |
844 | :type string) |
845 | (current-name |
846 | :allocation :virtual |
847 | :setter "gtk_file_chooser_set_current_name" |
68f519e0 |
848 | :accessor file-chooser-current-name |
1047e159 |
849 | :initarg :current-name |
850 | :type string) |
851 | (current-folder |
852 | :allocation :virtual |
853 | :setter "gtk_file_chooser_set_current_folder" |
9c35ab2a |
854 | :getter "gtk_file_chooser_get_current_folder" |
68f519e0 |
855 | :accessor file-chooser-current-folder |
1047e159 |
856 | :initarg :current-folder |
857 | :type string) |
858 | (uri |
859 | :allocation :virtual |
860 | :getter "gtk_file_chooser_get_uri" |
861 | :setter "gtk_file_chooser_set_uri" |
68f519e0 |
862 | :accessor file-chooser-uri |
1047e159 |
863 | :initarg :uri |
864 | :type string) |
865 | (current-folder-uri |
866 | :allocation :virtual |
867 | :setter "gtk_file_chooser_set_current_folder_uri" |
9c35ab2a |
868 | :getter "gtk_file_chooser_get_current_folder_uri" |
68f519e0 |
869 | :accessor file-chooser-current-folder-uri |
1047e159 |
870 | :initarg :current-folder-uri |
871 | :type string))) |
872 | |
68f519e0 |
873 | ("GtkFileFilter" |
874 | :slots |
875 | ((name |
876 | :allocation :virtual |
877 | :getter "gtk_file_filter_get_name" |
878 | :setter "gtk_file_filter_set_name" |
879 | :accessor file-filter-name |
880 | :initarg :name |
881 | :type string))) |
882 | |
1a1949c7 |
883 | ("GtkTreeView" |
884 | :slots |
885 | ((columns |
886 | :allocation :virtual |
887 | :getter "gtk_tree_view_get_columns" |
888 | :reader tree-view-columns |
fb90f18d |
889 | :type (glist (copy-of tree-view-column))) |
f4175703 |
890 | (selection |
891 | :allocation :virtual |
892 | :getter "gtk_tree_view_get_selection" |
893 | :reader tree-view-selection |
894 | :type tree-selection))) |
1a1949c7 |
895 | |
2a8752b0 |
896 | ("GtkTreeModel" |
897 | :slots |
898 | ((n-columns |
899 | :allocation :virtual |
900 | :getter "gtk_tree_model_get_n_columns" |
901 | :reader tree-model-n-columns |
902 | :type int))) |
903 | |
5793ecb0 |
904 | ("GtkTreeModelFilter" |
905 | :slots |
906 | ((virtual-root :merge t :type tree-path))) |
907 | |
f4175703 |
908 | ("GtkTreeSelection" |
909 | :slots |
910 | ((mode |
911 | :allocation :virtual |
912 | :getter "gtk_tree_selection_get_mode" |
913 | :setter "gtk_tree_selection_set_mode" |
914 | :accessor tree-selection-mode |
915 | :initarg :mode |
916 | :type selection-mode) |
917 | (tree-view |
918 | :allocation :virtual |
208fcd26 |
919 | :getter "gtk_tree_selection_get_tree_view" |
920 | :reader tree-selection-tree-view |
f4175703 |
921 | :type tree-view))) |
922 | |
1a1949c7 |
923 | ("GtkComboBox" |
924 | :slots |
925 | ((active-iter |
926 | :allocation :virtual |
927 | :getter "gtk_combo_box_get_active_iter" |
928 | :setter "gtk_combo_box_set_active_iter" |
929 | :accessor combo-box-active-iter |
930 | :type tree-iter))) |
931 | |
aa77651b |
932 | ("GtkTextBuffer" |
933 | :slots |
934 | ((line-count |
935 | :allocation :virtual |
936 | :getter "gtk_text_buffer_get_line_count" |
937 | :reader text-buffer-line-count |
938 | :type int) |
939 | (char-count |
940 | :allocation :virtual |
941 | :getter "gtk_text_buffer_get_char_count" |
942 | :reader text-buffer-char-count |
943 | :type int) |
944 | (modified |
945 | :allocation :virtual |
946 | :getter "gtk_text_buffer_get_modified" |
947 | :setter "gtk_text_buffer_set_modified" |
948 | :accessor text-buffer-modifed-p |
949 | :type boolean))) |
950 | |
5e17fb78 |
951 | ("GtkTextView" |
952 | :slots |
953 | ((default-attributes |
954 | :allocation :virtual |
955 | :getter "gtk_text_view_get_default_attributes" |
956 | :reader text-view-default-attributes |
957 | :type text-attributes))) |
958 | |
aa77651b |
959 | ("GtkTextTagTable" |
960 | :slots |
961 | ((size |
962 | :allocation :virtual |
963 | :getter "gtk_text_tag_table_get_size" |
964 | :reader text-tag-table-size |
965 | :type int))) |
966 | |
967 | ("GtkTextTag" |
968 | :slots |
969 | ((priority |
970 | :allocation :virtual |
971 | :getter "gtk_text_tag_get_priority" |
972 | :setter "gtk_text_tag_set_priority" |
973 | :accessor text-tag-priority |
974 | :type int) |
975 | (weight |
976 | :merge t :type pango:weight))) |
977 | |
0763f21d |
978 | ("GtkTextMark" |
979 | :slots |
980 | ((buffer |
981 | :allocation :virtual |
982 | :getter "gtk_text_mark_get_buffer" |
983 | :reader text-mark-buffer |
984 | :type text-buffer) |
985 | (name |
986 | :allocation :virtual |
987 | :getter "gtk_text_mark_get_name" |
988 | :reader text-mark-name |
f669d557 |
989 | :type (copy-of string)) |
0763f21d |
990 | (visible |
991 | :allocation :virtual |
992 | :getter "gtk_text_mark_get_visible" |
993 | :setter "gtk_text_mark_set_visible" |
994 | :accessor text-mark-visible-p |
995 | :type boolean) |
996 | (deleted |
997 | :allocation :virtual |
998 | :getter "gtk_text_mark_get_deleted" |
999 | :reader text-mark-deleted-p |
1000 | :type boolean) |
1001 | (left-gravity |
1002 | :allocation :virtual |
1003 | :getter "gtk_text_mark_get_left_gravity" |
1004 | :reader text-mark-left-gravity-p |
1005 | :type boolean))) |
1006 | |
5e17fb78 |
1007 | ("GtkUIManager" |
1008 | :type ui-manager |
1009 | :slots |
1010 | ((action-groups |
1011 | :allocation :virtual |
1012 | :getter "gtk_ui_manager_get_action_groups" |
1013 | :reader ui-manager-action-groups |
1014 | :type (copy-of (glist action-group))) |
1015 | (accel-group |
1016 | :allocation :virtual |
1017 | :getter "gtk_ui_manager_get_accel_group" |
1018 | :reader ui-manager-accel-group |
1019 | :type accel-group))) |
1020 | |
1021 | ("GtkUIManagerItemType" |
1022 | :type ui-manager-item-type) |
1023 | |
a5522de5 |
1024 | ("GtkAction" |
5e17fb78 |
1025 | :slots |
1026 | ((accelerator |
a5522de5 |
1027 | :allocation :user-data :initarg :accelerator |
1028 | :reader action-accelerator))) |
5e17fb78 |
1029 | |
4007604e |
1030 | #?-(pkg-exists-p "gtk+-2.0" :atleast-version "2.10.0") |
5e17fb78 |
1031 | ("GtkToggleAction" |
1032 | :slots |
1033 | ((active |
1034 | :allocation :virtual |
1035 | :getter "gtk_toggle_action_get_active" |
1036 | :setter "gtk_toggle_action_set_active" |
4007604e |
1037 | ; :initarg :active ;; Handled by initialize-instance |
5e17fb78 |
1038 | :accessor toggle-action-active-p |
1039 | :type boolean))) |
1040 | |
1041 | ("GtkRadioAction" |
1042 | :slots |
1043 | ((group |
1044 | :allocation :virtual |
1045 | :getter "gtk_radio_button_get_group" |
d76e9fca |
1046 | :reader radio-action-group |
5e17fb78 |
1047 | :type (copy-of (gslist widget))) |
a5522de5 |
1048 | (self |
1049 | :allocation :property :pname "value" :type int |
1050 | :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 |
1051 | (value |
4007604e |
1052 | :allocation :user-data :initarg :value :accessor radio-action-value) |
1053 | #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.10.0") |
1054 | ;; Use radio-action-get-current-value to get the current value of |
1055 | ;; a radio action group |
1056 | (current-value :ignore t))) |
2a8752b0 |
1057 | |
68f519e0 |
1058 | ("GtkColorSelection" |
1059 | :slots |
1060 | ((previous-alpha |
1061 | :allocation :virtual |
1062 | :getter "gtk_color_selection_get_previous_alpha" |
4154981f |
1063 | :setter "gtk_color_selection_set_previous_alpha" |
68f519e0 |
1064 | :initarg :previous-alpha |
1065 | :accessor color-selection-previous-alpha |
1066 | :type (unsigned 16)) |
1067 | (previous-color |
1068 | :allocation :virtual |
4154981f |
1069 | :getter color-selection-previous-color |
1070 | :setter "gtk_color_selection_set_previous_color" |
68f519e0 |
1071 | :initarg :previous-color |
4154981f |
1072 | :writer (setf color-selection-previous-color) |
68f519e0 |
1073 | :type gdk:color))) |
1074 | |
1075 | ("GtkFontSelection" |
1076 | :slots |
1077 | ; deprecated property |
1078 | ((font :ignore t))) |
aa77651b |
1079 | |
647c99e5 |
1080 | ("GtkClipboard" |
1081 | :slots |
1082 | ((display |
1083 | :allocation :virtual |
1084 | :getter "gtk_clipboard_get_display" |
1085 | :reader clipboard-display |
1086 | :type gdk:display))) |
1087 | |
b6d4ac86 |
1088 | #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.6.0") |
43e260ae |
1089 | ("GtkIconView" |
1090 | :slots |
c46ca281 |
1091 | ((text-column |
1092 | :allocation :virtual |
1093 | :getter %icon-view-get-text-column |
1094 | :setter %icon-view-set-text-column |
1095 | :boundp %icon-view-text-column-boundp |
1096 | :initarg :text-column |
1097 | :accessor icon-view-text-column) |
1098 | (markup-column |
1099 | :allocation :virtual |
1100 | :getter %icon-view-get-markup-column |
fb90f18d |
1101 | :setter %icon-view-set-markup-column |
c46ca281 |
1102 | :boundp %icon-view-markup-column-boundp |
1103 | :initarg :markup-column |
1104 | :accessor icon-view-markup-column) |
1105 | (pixbuf-column |
1106 | :allocation :virtual |
1107 | :getter %icon-view-get-pixbuf-column |
1108 | :setter %icon-view-set-pixbuf-column |
1109 | :boundp %icon-view-pixbuf-column-boundp |
1110 | :initarg :pixbuf-column |
1111 | :accessor icon-view-pixbuf-column))) |
647c99e5 |
1112 | |
7d2f9e31 |
1113 | #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.10.0") |
1114 | ("GtkAssistant" |
1115 | :slots |
1116 | ((current-page |
1117 | :allocation :virtual |
1118 | :getter "gtk_assistant_get_current_page" |
1119 | :setter "gtk_assistant_set_current_page" |
1120 | :accessor assistant-current-page |
1121 | :type int) |
1122 | (num-pages |
1123 | :allocation :virtual |
1124 | :getter "gtk_assistant_get_n_page" |
1125 | :reader assistant-current-page |
1126 | :type int))) |
1127 | |
b4232e75 |
1128 | #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.10.0") |
1129 | ("GtkRecentChooser" |
1130 | :slots |
1131 | ((current-item |
1132 | :allocation :virtual |
1133 | :getter "gtk_recent_chooser_get_current_item" |
1134 | :reader recent-chooser-current-item |
1135 | :type recent-info) |
1136 | (current-uri |
1137 | :allocation :virtual |
1138 | :getter "gtk_recent_chooser_get_current_uri" |
1139 | :setter %recent-chooser-set-current-uri |
1140 | :accessor recent-chooser-current-uri |
1141 | :type string))) |
7d2f9e31 |
1142 | |
5b51dee1 |
1143 | ;; Not needed |
1144 | ("GtkFundamentalType" :ignore t) |
1145 | ("GtkArgFlags" :ignore t) |
560af5c5 |
1146 | |
d520140e |
1147 | |
5b51dee1 |
1148 | ;; Deprecated widgets |
1149 | ("GtkCList" :ignore-prefix t) |
1150 | ("GtkCTree" :ignore-prefix t) |
1a1949c7 |
1151 | ("GtkList" :ignore t) |
1152 | ("GtkListItem" :ignore t) |
5b51dee1 |
1153 | ("GtkTree" :ignore t) |
1154 | ("GtkTreeItem" :ignore t) |
1a1949c7 |
1155 | ("GtkItemFactory" :ignore t) |
5e17fb78 |
1156 | ("GtkText" :ignore t) |
5b51dee1 |
1157 | ("GtkPacker" :ignore-prefix t) |
1158 | ("GtkPixmap" :ignore t) |
1159 | ("GtkPreview" :ignore-prefix t) |
1a1949c7 |
1160 | ("GtkProgres" :ignore t) |
5b51dee1 |
1161 | ("GtkTipsQuery" :ignore t) |
1047e159 |
1162 | ("GtkOldEditable" :ignore t) |
1a1949c7 |
1163 | ("GtkCombo" :ignore t) |
1164 | ("GtkOptionMenu" :ignore t) |
68f519e0 |
1165 | ("GtkFileSelection" :ignore t) |
1166 | ("GtkInputDialog") |
1047e159 |
1167 | |
1168 | ;; What are these? |
1169 | ("GtkFileSystemModule" :ignore t) |
1170 | ("GtkIMModule" :ignore t) |
fa60e0a2 |
1171 | ("GtkThemeEngine" :ignore t)) |
aa77651b |
1172 | |
1173 | |
1174 | (defclass text-iter (boxed) |
1175 | ((buffer |
1176 | :allocation :virtual |
1177 | :getter "gtk_text_iter_get_buffer" |
1178 | :reader text-iter-buffer |
68f519e0 |
1179 | :type pointer) ;text-buffer) |
aa77651b |
1180 | (offset |
1181 | :allocation :virtual |
1182 | :getter "gtk_text_iter_get_offset" |
1183 | :setter "gtk_text_iter_set_offset" |
1184 | :accessor text-iter-offset |
1185 | :type int) |
1186 | (line |
1187 | :allocation :virtual |
1188 | :getter "gtk_text_iter_get_line" |
1189 | :setter "gtk_text_iter_set_line" |
1190 | :accessor text-iter-line |
1191 | :type int) |
1192 | (line-offset |
1193 | :allocation :virtual |
1194 | :getter "gtk_text_iter_get_line_offset" |
1195 | :setter "gtk_text_iter_set_line_offset" |
1196 | :accessor text-iter-line-offset |
1197 | :type int) |
1198 | (line-index |
1199 | :allocation :virtual |
1200 | :getter "gtk_text_iter_get_line_index" |
1201 | :setter "gtk_text_iter_set_line_index" |
1202 | :accessor text-iter-line-index |
1203 | :type int) |
1204 | (visible-line-index |
1205 | :allocation :virtual |
1206 | :getter "gtk_text_iter_get_visible_line_index" |
1207 | :setter "gtk_text_iter_set_visible_line_index" |
1208 | :accessor text-iter-visible-line-index |
1209 | :type int) |
1210 | (visible-line-offset |
1211 | :allocation :virtual |
1212 | :getter "gtk_text_iter_get_visible_line_offset" |
1213 | :setter "gtk_text_iter_set_visible_line_offset" |
1214 | :accessor text-iter-visible-line-offset |
163a08aa |
1215 | :type int)) |
1216 | (:metaclass boxed-class) |
1217 | (:size #.(* 14 (size-of 'pointer)))) |
d76e9fca |
1218 | |
1219 | |
1220 | (defclass tooltips-data (struct) |
1221 | ((tooltips |
1222 | :allocation :alien |
1223 | :reader tooltips-data-tooltips |
1224 | :type tooltips) |
1225 | (widget |
1226 | :allocation :alien |
1227 | :reader tooltips-data-widget |
1228 | :type widget) |
1229 | (tip-text |
1230 | :allocation :alien |
1231 | :reader tooltips-data-tip-text |
1232 | :type string) |
1233 | (tip-private |
1234 | :allocation :alien |
1235 | :reader tooltips-data-tip-private |
1236 | :type string)) |
1237 | (:metaclass struct-class)) |
68f519e0 |
1238 | |
1239 | (defclass file-filter-info (struct) |
1240 | ((contains |
1241 | :allocation :alien |
1242 | :initarg :contains |
1243 | :type file-filter-flags) |
1244 | (filename |
1245 | :allocation :alien |
1246 | :initarg :filename |
1247 | :type string) |
1248 | (uri |
1249 | :allocation :alien |
1250 | :initarg :uri |
1251 | :type string) |
1252 | (display-name |
1253 | :allocation :alien |
1254 | :initarg :display-name |
1255 | :type string) |
1256 | (mime-type |
1257 | :allocation :alien |
1258 | :initarg :mime-type |
1259 | :type string)) |
1260 | (:metaclass struct-class)) |
eacab64f |
1261 | |
1262 | |
1263 | (defclass accel-key (struct) |
1264 | ((key |
1265 | :allocation :alien |
1266 | :type unsigned-int) |
1267 | (modifiers |
1268 | :allocation :alien |
1269 | :type gdk:modifier-type) |
1270 | (flags |
1271 | :allocation :alien |
1272 | :type (unsigned 16))) |
1273 | (:metaclass struct-class)) |
1274 | |
1275 | (defclass accel-group-entry (struct) |
1276 | ((key |
1277 | :allocation :alien |
1278 | :setter nil |
1279 | :type (inlined accel-key)) |
1280 | (gclosure |
1281 | :allocation :alien |
1282 | :type gclosure) |
1283 | (accel_path_quark |
1284 | :allocation :alien |
1285 | :type quark)) |
1286 | (:metaclass struct-class)) |
bdc0e300 |
1287 | |
b6d4ac86 |
1288 | #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.8.0") |
bdc0e300 |
1289 | (define-enum-type drop-position |
1290 | :no-drop :drop-into :drop-left :drop-right :drop-above :drop-below) |
163a08aa |
1291 | |
1292 | |
163a08aa |
1293 | (defclass target-entry (struct) |
1294 | ((target |
1295 | :allocation :alien |
1296 | :accessor target-entry-target |
1297 | :initarg :target |
1298 | :type string) |
1299 | (flags |
1300 | :allocation :alien |
1301 | :accessor target-entry-flags |
1302 | :initarg :flags |
1303 | :type target-flags) |
1304 | (id |
1305 | :allocation :alien |
1306 | :accessor target-entry-id |
1307 | :initarg :id |
1308 | :type unsigned-int)) |
1309 | (:metaclass struct-class)) |
1310 | |
18c83e09 |
1311 | |
1312 | (defclass selection-data (boxed) |
1313 | ((selection |
1314 | :allocation :alien :type gdk:atom |
1315 | :reader selection-data-selection) |
1316 | (target |
1317 | :allocation :alien :type gdk:atom |
1318 | :reader selection-data-target) |
1319 | (type |
1320 | :allocation :alien :type gdk:atom |
1321 | :reader selection-data-type) |
1322 | (format |
1323 | :allocation :alien :type int |
1324 | :reader selection-data-format) |
1325 | (data |
1326 | :allocation :alien :type pointer |
1327 | :reader selection-data-data) |
1328 | (length |
1329 | :allocation :alien :type int |
1330 | :reader selection-data-length) |
1331 | (display |
1332 | :allocation :alien :type gdk:display |
1333 | :reader selection-data-display)) |
1334 | (:metaclass boxed-class)) |
1335 | |
1336 | |
36f9a01b |
1337 | #?-(pkg-exists-p "gtk+-2.0" :atleast-version "2.10.0") |
18c83e09 |
1338 | (defclass target-list (proxy) |
1339 | () |
b6d4ac86 |
1340 | (:metaclass proxy-class) |
1341 | (:ref target-list-ref) |
1342 | (:unref target-list-unref)) |
36f9a01b |
1343 | |
1344 | #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.10.0") |
1345 | (defclass target-list (boxed) |
1346 | () |
1347 | (:metaclass boxed-class)) |