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