1 ;; Common Lisp bindings for GTK+ v2.x
2 ;; Copyright 1999-2005 Espen S. Johnsen <espen@users.sf.net>
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:
12 ;; The above copyright notice and this permission notice shall be
13 ;; included in all copies or substantial portions of the Software.
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.
23 ;; $Id: gtktypes.lisp,v 1.54 2007/05/10 20:21:25 espen Exp $
27 (defclass requisition (boxed)
30 :accessor requisition-width
35 :accessor requisition-height
38 (:metaclass boxed-class))
41 (defclass allocation (struct)
44 :accessor allocation-width
49 :accessor allocation-width
54 :accessor allocation-width
59 :accessor allocation-height
62 (:metaclass struct-class))
64 (defclass border (boxed)
72 :accessor border-right
82 :accessor border-bottom
85 (:metaclass boxed-class))
87 (defclass stock-item (struct)
90 :accessor stock-item-id
95 :accessor stock-item-label
100 :accessor stock-item-modifier
102 :type gdk:modifier-type)
105 :accessor stock-item-keyval
110 :accessor stock-item-translation-domain
111 :initarg :translation-domain
113 (:metaclass struct-class)
114 (:ref stock-item-copy)
115 (:unref stock-item-free))
117 (defclass tree-iter (boxed)
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))
125 ;; (defclass tree-path (boxed)
126 ;; ((depth :allocation :alien :type int)
127 ;; (indices :allocation :alien :type pointer))
128 ;; (:metaclass boxed-class))
130 (deftype tree-path () '(vector integer))
131 (register-type 'tree-path '|gtk_tree_path_get_type|)
134 '(or int (enum (:start 0) (:end -1) (:first 0) (:last -1))))
136 (define-type-method from-alien-form ((type position) form &key ref)
137 (declare (ignore type ref))
138 (from-alien-form 'int form))
140 (define-type-method from-alien-function ((type position) &key ref)
141 (declare (ignore type ref))
142 (from-alien-function 'int))
144 (define-type-method reader-function ((type position) &optional ref)
145 (declare (ignore type ref))
146 (reader-function 'int))
148 (define-types-by-introspection "Gtk"
150 ("GtkObject" :ignore t)
151 ("GtkRequisition" :ignore t)
152 ("GtkBorder" :ignore t)
153 ("GtkTreeIter" :ignore t)
154 ("GtkTreePath" :ignore t)
155 ; ("GtkStyle" :ignore t)
162 :accessor widget-child-properties
163 :type container-child)
166 :getter "gtk_widget_get_window"
167 :reader widget-window
169 (parent :merge t :initarg nil)
170 (visible :merge t :initarg nil)
173 :getter %widget-parent-window
174 :setter "gtk_widget_set_parent_window"
175 :accessor widget-parent-window
176 :initarg :parent-window
180 :getter "gtk_widget_get_state"
181 :setter "gtk_widget_set_state"
182 :accessor widget-state
187 :getter "gtk_widget_get_colormap"
188 :setter "gtk_widget_set_colormap"
190 :accessor widget-colormap
194 :getter "gtk_widget_get_visual"
195 :reader widget-visual
199 :getter "gtk_widget_get_direction"
200 :setter "gtk_widget_set_direction"
201 :accessor widget-direction
203 :type text-direction)
206 :getter "gtk_widget_get_composite_name"
207 :setter "gtk_widget_set_composite_name"
208 :accessor widget-composite-name
209 :initarg :composite-name
210 :type (copy-of string)) ; will leak the string when setting
213 :getter "gtk_widget_get_settings"
214 :accessor widget-settings
218 :getter "gtk_widget_get_child_visible"
219 :setter "gtk_widget_set_child_visible"
220 :accessor widget-child-visible-p
221 :initarg :child-visible
224 :merge t :unbound -1)
226 :merge t :unbound -1)))
233 :setter (setf container-children)
234 :getter "gtk_container_get_children"
235 :reader container-children
236 :type (glist (copy-of widget)))
237 (internal-children ; for debugging
239 :getter container-internal-children)
242 :getter "gtk_container_child_type"
243 :reader container-child-type
247 :getter "gtk_container_get_focus_child"
248 :setter "gtk_container_set_focus_child"
249 :accessor container-focus-child
250 :initarg :focus-child
254 :getter container-focus-chain
255 :setter (setf container-focus-chain))
258 :getter "gtk_container_get_focus_hadjustment"
259 :setter "gtk_container_set_focus_hadjustment"
260 :accessor container-focus-hadjustment
261 :initarg :focus-hadjustment
265 :getter "gtk_container_get_focus_vadjustment"
266 :setter "gtk_container_set_focus_vadjustment"
267 :accessor container-focus-vadjustment
268 :initarg :focus-vadjustment
272 :getter "gtk_container_get_reallocate_redraws"
273 :setter "gtk_container_set_reallocate_redraws"
274 :accessor container-reallocate-redraws
275 :initarg :reallocate-redraws
282 :getter "gtk_bin_get_child"
283 :setter (setf bin-child)
291 :getter "gtk_window_get_focus"
292 :setter "gtk_window_set_focus"
293 :accessor window-focus-widget
294 :initarg :focus-widget
298 :getter "gtk_window_get_default"
299 :setter "gtk_window_set_default"
300 :accessor window-default-widget
301 :initarg :default-widget
305 :getter "gtk_window_get_has_frame"
306 :setter "gtk_window_set_has_frame"
307 :accessor window-has-frame-p
312 :getter %window-get-icon-list
313 :setter "gtk_window_set_icon_list"
314 :accessor window-icon-list
316 :type (glist gdk:pixbuf))
319 :getter "gtk_window_get_mnemonic_modifier"
320 :setter "gtk_window_set_mnemonic_modifier"
321 :accessor window-mnemonic-modifier
322 :initarg :mnemonic-modifier
323 :type gdk:modifier-type)
324 #?-(pkg-exists-p "gtk+-2.0" :atleast-version "2.10.0")
327 :getter "gtk_window_get_transient_for"
328 :setter "gtk_window_set_transient_for"
329 :accessor window-transient-for
330 :initarg :transient-for
334 :getter "gtk_window_get_group"
335 :setter (setf window-group)
339 (default-width :merge t :unbound -1)
340 (default-height :merge t :unbound -1)))
343 :dependencies (window)
347 :accessor window-group-grabs
348 :type (gslist window))))
354 :getter "gtk_tooltips_get_enabled"
355 :setter (setf tooltips-enabled-p)
356 :reader tooltips-enabled-p
364 :getter menu-item-label
365 :setter (setf menu-item-label)
368 :allocation :user-data
370 :initarg :use-underline
371 :accessor menu-item-use-underline-p)
374 :getter "gtk_menu_item_get_right_justified"
375 :setter "gtk_menu_item_set_right_justified"
376 :accessor menu-item-right-justified-p
377 :initarg :right-justified
381 :getter "gtk_menu_item_get_submenu"
382 :setter "gtk_menu_item_set_submenu"
383 :accessor menu-item-submenu
391 :getter "gtk_menu_shell_get_take_focus"
392 :setter "gtk_menu_shell_set_take_focus"
393 :accessor menu-shell-take-focus-p
396 ("GtkColorSelectionDialog"
400 :reader color-selection-dialog-colorsel
404 :reader color-selection-dialog-ok-button
408 :reader color-selection-dialog-cancel-button
412 :reader color-selection-dialog-help-button
417 (#?-(pkg-exists-p "gtk+-2.0" :atleast-version "2.8.0")
420 :reader scrolled-window-hscrollbar
422 #?-(pkg-exists-p "gtk+-2.0" :atleast-version "2.8.0")
425 :reader scrolled-window-vscrollbar
427 #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.8.0")
430 :getter "gtk_scrolled_window_get_hscrollbar"
431 :reader scrolled-window-hscrollbar
433 #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.8.0")
436 :getter "gtk_scrolled_window_get_vscrollbar"
437 :reader scrolled-window-vscrollbar
444 :getter "gtk_paned_get_child1"
445 :setter "gtk_paned_add1"
446 :accessor paned-child1
451 :getter "gtk_paned_get_child2"
452 :setter "gtk_paned_add2"
453 :accessor paned-child2
461 :getter "gtk_menu_get_accel_group"
462 :setter "gtk_menu_set_accel_group"
463 :accessor menu-accel-group
464 :initarg :accel-group
468 :getter "gtk_menu_get_active"
469 :setter (setf menu-active)
475 :getter "gtk_menu_get_screen"
476 :setter "gtk_menu_set_screen"
477 :accessor menu-screen
482 :getter "gtk_menu_get_attach_widget"
483 :reader menu-attach-widget
485 #?-(pkg-exists-p "gtk+-2.0" :atleast-version "2.6.0")
488 :getter "gtk_menu_get_tearoff_state"
489 :setter "gtk_menu_set_tearoff_state"
490 :accessor menu-tearoff-state-p
491 :initarg :tearoff-state
498 :getter "gtk_plug_get_id"
500 :type gdk:native-window)))
506 :getter "gtk_socket_get_id"
508 :type gdk:native-window)))
512 ((show-tooltips ;; this slot is equivalent to the property
513 :allocation :virtual ;; "tooltips" in Gtk+ 2.8
514 :getter "gtk_toolbar_get_tooltips"
515 :setter "gtk_toolbar_set_tooltips"
516 :accessor toolbar-show-tooltips-p
517 :initarg :show-tooltips
521 :getter "gtk_toolbar_get_tooltips_object"
522 :reader toolbar-tooltips
524 (toolbar-style ; defined manually to get the accesssor name correct
525 :allocation :property
526 :pname "toolbar-style"
527 :initarg :toolbar-style
528 :accessor toolbar-style
532 :getter "gtk_toolbar_get_n_items"
533 :reader toolbar-n-items
540 :getter "gtk_tool_item_get_use_drag_window"
541 :setter "gtk_tool_item_set_use_drag_window"
542 :accessor tool-item-use-drag-window-p
543 :initarg :drag-window
546 :allocation :user-data
547 :setter (setf tool-item-tip-text)
549 :reader tool-item-tip-text)
551 :allocation :user-data
552 :setter (setf tool-item-tip-private)
553 :initarg :tip-private
554 :reader tool-item-tip-private)))
558 ((stock-id :merge t :initarg :stock)
559 (icon-widget :merge t :initarg :icon)))
561 ("GtkToggleToolButton"
565 :getter "gtk_toggle_tool_button_get_active"
566 :setter "gtk_toggle_tool_button_get_active"
567 :accessor toggle-tool-button-active-p
571 ("GtkRadioToolButton"
575 :getter "gtk_radio_tool_button_get_group"
576 :reader radio-tool-button-group
577 :type (copy-of (gslist widget)))
579 :allocation :user-data
581 :accessor radio-tool-button-value
582 :documentation "Value passed as argument to the activate callback")))
588 :getter %notebook-current-page
589 :setter (setf notebook-current-page)
590 :reader notebook-current-page
592 :initarg :current-page)
595 :getter "gtk_notebook_get_current_page"
596 :setter "gtk_notebook_set_current_page"
598 :initarg :current-page-num
599 :accessor notebook-current-page-num
606 :getter "gtk_ruler_get_metric"
607 :setter "gtk_ruler_set_metric"
608 :accessor ruler-metric
614 ; deprecated properties
615 ((bar-style :ignore t)
616 (adjustment :ignore t)
617 (activity-step :ignore t)
618 (activity-blocks :ignore t)
619 (discrete-blocks :ignore t)))
623 ; deprecated property
624 ((shadow :ignore t)))
628 ; deprecated property
629 ((shadow :ignore t)))
634 :allocation :property :pname "column-spacing"
635 :initarg :column-spacing
638 :allocation :property :pname "row-spacing"
639 :initarg :row-spacing
640 :type unsigned-int)))
646 :getter "gtk_dialog_get_vbox"
651 :getter "gtk_dialog_get_action_area"
652 :reader dialog-action-area
659 :getter "gtk_entry_get_layout"
664 :getter "gtk_entry_get_completion"
665 :setter "gtk_entry_set_completion"
667 :accessor entry-completion
668 :type entry-completion)
669 (max-length :merge t :unbound 0)
670 #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.6.0")
671 (width-chars :merge t :unbound -1)))
673 ("GtkEntryCompletion"
677 :getter "gtk_entry_completion_get_entry"
678 :reader entry-completion-entry
680 (minimum-key-length :merge t :unbound -1)
681 #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.6.0")
682 (text-column :merge t :unbound -1)))
688 :getter "gtk_radio_button_get_group"
689 :reader radio-button-group
690 :type (copy-of (gslist widget)))
692 :allocation :user-data
694 :accessor radio-button-value
695 :documentation "Value passed as argument to the activate callback")))
701 :getter "gtk_radio_menu_item_get_group"
702 :reader radio-menu-item-group
703 :type (copy-of (gslist widget)))
705 :allocation :user-data
707 :accessor radio-menu-item-value
708 :documentation "Value passed as argument to the activate callback")))
714 :getter "gtk_layout_get_bin_window"
715 :reader layout-bin-window
722 :getter "gtk_fixed_get_has_window"
723 :setter "gtk_fixed_set_has_window"
724 :reader fixed-has-window-p
732 :getter "gtk_range_get_value"
733 :setter "gtk_range_set_value"
735 :accessor range-value
740 :setter (setf range-upper)
745 :setter (setf range-lower)
749 :getter range-step-increment
750 :setter (setf range-step-increment)
751 :initarg :step-increment)
754 :getter range-page-increment
755 :setter (setf range-page-increment)
756 :initarg :page-increment)))
761 #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.6.0")
762 (pixel-size :merge t :unbound -1)))
768 :getter "gtk_label_get_layout"
770 :type pango:layout)))
776 :getter "gtk_scale_get_layout"
778 :type pango:layout)))
784 :getter "gtk_editable_get_editable"
785 :setter "gtk_editable_set_editable"
786 :reader editable-editable-p
791 :getter "gtk_editable_get_position"
792 :setter "gtk_editable_set_position"
793 :reader editable-position
798 :getter editable-text
799 :setter (setf editable-text)
806 :getter "gtk_file_chooser_get_filename"
807 :setter "gtk_file_chooser_set_filename"
808 :accessor file-chooser-filename
813 :setter "gtk_file_chooser_set_current_name"
814 :accessor file-chooser-current-name
815 :initarg :current-name
819 :setter "gtk_file_chooser_set_current_folder"
820 :setter "gtk_file_chooser_get_current_folder"
821 :accessor file-chooser-current-folder
822 :initarg :current-folder
826 :getter "gtk_file_chooser_get_uri"
827 :setter "gtk_file_chooser_set_uri"
828 :accessor file-chooser-uri
833 :setter "gtk_file_chooser_set_current_folder_uri"
834 :setter "gtk_file_chooser_get_current_folder_uri"
835 :accessor file-chooser-current-folder-uri
836 :initarg :current-folder-uri
843 :getter "gtk_file_filter_get_name"
844 :setter "gtk_file_filter_set_name"
845 :accessor file-filter-name
853 :getter "gtk_tree_view_get_columns"
854 :reader tree-view-columns
855 :type (glist tree-view-column))
858 :getter "gtk_tree_view_get_selection"
859 :reader tree-view-selection
860 :type tree-selection)))
866 :getter "gtk_tree_model_get_n_columns"
867 :reader tree-model-n-columns
874 :getter "gtk_tree_selection_get_mode"
875 :setter "gtk_tree_selection_set_mode"
876 :accessor tree-selection-mode
878 :type selection-mode)
881 :getter "gtk_tree_selection_get_mode"
882 :reader tree-selection-mode
889 :getter "gtk_combo_box_get_active_iter"
890 :setter "gtk_combo_box_set_active_iter"
891 :accessor combo-box-active-iter
898 :getter "gtk_text_buffer_get_line_count"
899 :reader text-buffer-line-count
903 :getter "gtk_text_buffer_get_char_count"
904 :reader text-buffer-char-count
908 :getter "gtk_text_buffer_get_modified"
909 :setter "gtk_text_buffer_set_modified"
910 :accessor text-buffer-modifed-p
917 :getter "gtk_text_view_get_default_attributes"
918 :reader text-view-default-attributes
919 :type text-attributes)))
925 :getter "gtk_text_tag_table_get_size"
926 :reader text-tag-table-size
933 :getter "gtk_text_tag_get_priority"
934 :setter "gtk_text_tag_set_priority"
935 :accessor text-tag-priority
938 :merge t :type pango:weight)))
944 :getter "gtk_text_mark_get_buffer"
945 :reader text-mark-buffer
949 :getter "gtk_text_mark_get_name"
950 :reader text-mark-name
951 :type (copy-of string))
954 :getter "gtk_text_mark_get_visible"
955 :setter "gtk_text_mark_set_visible"
956 :accessor text-mark-visible-p
960 :getter "gtk_text_mark_get_deleted"
961 :reader text-mark-deleted-p
965 :getter "gtk_text_mark_get_left_gravity"
966 :reader text-mark-left-gravity-p
974 :getter "gtk_ui_manager_get_action_groups"
975 :reader ui-manager-action-groups
976 :type (copy-of (glist action-group)))
979 :getter "gtk_ui_manager_get_accel_group"
980 :reader ui-manager-accel-group
983 ("GtkUIManagerItemType"
984 :type ui-manager-item-type)
989 :allocation :user-data :initarg :accelerator
990 :reader action-accelerator)))
992 #?-(pkg-exists-p "gtk+-2.0" :atleast-version "2.10.0")
997 :getter "gtk_toggle_action_get_active"
998 :setter "gtk_toggle_action_set_active"
999 ; :initarg :active ;; Handled by initialize-instance
1000 :accessor toggle-action-active-p
1006 :allocation :virtual
1007 :getter "gtk_radio_button_get_group"
1008 :reader radio-action-group
1009 :type (copy-of (gslist widget)))
1011 :allocation :property :pname "value" :type int
1012 :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.")
1014 :allocation :user-data :initarg :value :accessor radio-action-value)
1015 #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.10.0")
1016 ;; Use radio-action-get-current-value to get the current value of
1017 ;; a radio action group
1018 (current-value :ignore t)))
1020 ("GtkColorSelection"
1023 :allocation :virtual
1024 :getter "gtk_color_selection_get_previous_alpha"
1025 :setter "gtk_color_selection_get_previous_alpha"
1026 :initarg :previous-alpha
1027 :accessor color-selection-previous-alpha
1028 :type (unsigned 16))
1030 :allocation :virtual
1031 :getter "gtk_color_selection_get_previous_color"
1032 :setter "gtk_color_selection_get_previous_color"
1033 :initarg :previous-color
1034 :accessor color-selection-previous-color
1039 ; deprecated property
1045 :allocation :virtual
1046 :getter "gtk_clipboard_get_display"
1047 :reader clipboard-display
1048 :type gdk:display)))
1050 #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.6.0")
1054 :allocation :virtual
1055 :getter %icon-view-get-text-column
1056 :setter %icon-view-set-text-column
1057 :boundp %icon-view-text-column-boundp
1058 :initarg :text-column
1059 :accessor icon-view-text-column)
1061 :allocation :virtual
1062 :getter %icon-view-get-markup-column
1063 :setter %icon-view-set-tmarkup-column
1064 :boundp %icon-view-markup-column-boundp
1065 :initarg :markup-column
1066 :accessor icon-view-markup-column)
1068 :allocation :virtual
1069 :getter %icon-view-get-pixbuf-column
1070 :setter %icon-view-set-pixbuf-column
1071 :boundp %icon-view-pixbuf-column-boundp
1072 :initarg :pixbuf-column
1073 :accessor icon-view-pixbuf-column)))
1076 ("GtkFundamentalType" :ignore t)
1077 ("GtkArgFlags" :ignore t)
1080 ;; Deprecated widgets
1081 ("GtkCList" :ignore-prefix t)
1082 ("GtkCTree" :ignore-prefix t)
1083 ("GtkList" :ignore t)
1084 ("GtkListItem" :ignore t)
1085 ("GtkTree" :ignore t)
1086 ("GtkTreeItem" :ignore t)
1087 ("GtkItemFactory" :ignore t)
1088 ("GtkText" :ignore t)
1089 ("GtkPacker" :ignore-prefix t)
1090 ("GtkPixmap" :ignore t)
1091 ("GtkPreview" :ignore-prefix t)
1092 ("GtkProgres" :ignore t)
1093 ("GtkTipsQuery" :ignore t)
1094 ("GtkOldEditable" :ignore t)
1095 ("GtkCombo" :ignore t)
1096 ("GtkOptionMenu" :ignore t)
1097 ("GtkFileSelection" :ignore t)
1101 ("GtkFileSystemModule" :ignore t)
1102 ("GtkIMModule" :ignore t)
1103 ("GtkThemeEngine" :ignore t))
1106 (defclass text-iter (boxed)
1108 :allocation :virtual
1109 :getter "gtk_text_iter_get_buffer"
1110 :reader text-iter-buffer
1111 :type pointer) ;text-buffer)
1113 :allocation :virtual
1114 :getter "gtk_text_iter_get_offset"
1115 :setter "gtk_text_iter_set_offset"
1116 :accessor text-iter-offset
1119 :allocation :virtual
1120 :getter "gtk_text_iter_get_line"
1121 :setter "gtk_text_iter_set_line"
1122 :accessor text-iter-line
1125 :allocation :virtual
1126 :getter "gtk_text_iter_get_line_offset"
1127 :setter "gtk_text_iter_set_line_offset"
1128 :accessor text-iter-line-offset
1131 :allocation :virtual
1132 :getter "gtk_text_iter_get_line_index"
1133 :setter "gtk_text_iter_set_line_index"
1134 :accessor text-iter-line-index
1137 :allocation :virtual
1138 :getter "gtk_text_iter_get_visible_line_index"
1139 :setter "gtk_text_iter_set_visible_line_index"
1140 :accessor text-iter-visible-line-index
1142 (visible-line-offset
1143 :allocation :virtual
1144 :getter "gtk_text_iter_get_visible_line_offset"
1145 :setter "gtk_text_iter_set_visible_line_offset"
1146 :accessor text-iter-visible-line-offset
1148 (:metaclass boxed-class)
1149 (:size #.(* 14 (size-of 'pointer))))
1152 (defclass tooltips-data (struct)
1155 :reader tooltips-data-tooltips
1159 :reader tooltips-data-widget
1163 :reader tooltips-data-tip-text
1167 :reader tooltips-data-tip-private
1169 (:metaclass struct-class))
1171 (defclass file-filter-info (struct)
1175 :type file-filter-flags)
1186 :initarg :display-name
1192 (:metaclass struct-class))
1195 (defclass accel-key (struct)
1201 :type gdk:modifier-type)
1204 :type (unsigned 16)))
1205 (:metaclass struct-class))
1207 (defclass accel-group-entry (struct)
1211 :type (inlined accel-key))
1218 (:metaclass struct-class))
1220 #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.8.0")
1221 (define-enum-type drop-position
1222 :no-drop :drop-into :drop-left :drop-right :drop-above :drop-below)
1225 (defclass target-entry (struct)
1228 :accessor target-entry-target
1233 :accessor target-entry-flags
1238 :accessor target-entry-id
1240 :type unsigned-int))
1241 (:metaclass struct-class))
1244 (defclass selection-data (boxed)
1246 :allocation :alien :type gdk:atom
1247 :reader selection-data-selection)
1249 :allocation :alien :type gdk:atom
1250 :reader selection-data-target)
1252 :allocation :alien :type gdk:atom
1253 :reader selection-data-type)
1255 :allocation :alien :type int
1256 :reader selection-data-format)
1258 :allocation :alien :type pointer
1259 :reader selection-data-data)
1261 :allocation :alien :type int
1262 :reader selection-data-length)
1264 :allocation :alien :type gdk:display
1265 :reader selection-data-display))
1266 (:metaclass boxed-class))
1269 #?-(pkg-exists-p "gtk+-2.0" :atleast-version "2.10.0")
1270 (defclass target-list (proxy)
1272 (:metaclass proxy-class)
1273 (:ref target-list-ref)
1274 (:unref target-list-unref))
1276 #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.10.0")
1277 (defclass target-list (boxed)
1279 (:metaclass boxed-class))