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.62 2008/01/10 22:11:15 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-x
49 :accessor allocation-y
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)
227 #?-(pkg-exists-p "gtk+-2.0" :atleast-version "2.12.0")
230 :getter "gtk_widget_get_tooltip_window"
231 :setter "gtk_widget_set_tooltip_window"
232 :accessor widget-tooltip-window
233 :initarg :tooltip-window
241 :setter (setf container-children)
242 :getter "gtk_container_get_children"
243 :reader container-children
244 :type (glist (copy-of widget)))
245 (internal-children ; for debugging
247 :getter container-internal-children)
250 :getter "gtk_container_child_type"
251 :reader container-child-type
255 :getter "gtk_container_get_focus_child"
256 :setter "gtk_container_set_focus_child"
257 :accessor container-focus-child
258 :initarg :focus-child
262 :getter container-focus-chain
263 :setter (setf container-focus-chain))
266 :getter "gtk_container_get_focus_hadjustment"
267 :setter "gtk_container_set_focus_hadjustment"
268 :accessor container-focus-hadjustment
269 :initarg :focus-hadjustment
273 :getter "gtk_container_get_focus_vadjustment"
274 :setter "gtk_container_set_focus_vadjustment"
275 :accessor container-focus-vadjustment
276 :initarg :focus-vadjustment
280 :getter "gtk_container_get_reallocate_redraws"
281 :setter "gtk_container_set_reallocate_redraws"
282 :accessor container-reallocate-redraws
283 :initarg :reallocate-redraws
290 :getter "gtk_bin_get_child"
291 :setter (setf bin-child)
299 :getter "gtk_window_get_focus"
300 :setter "gtk_window_set_focus"
301 :accessor window-focus-widget
302 :initarg :focus-widget
306 :getter "gtk_window_get_default"
307 :setter "gtk_window_set_default"
308 :accessor window-default-widget
309 :initarg :default-widget
313 :getter "gtk_window_get_has_frame"
314 :setter "gtk_window_set_has_frame"
315 :accessor window-has-frame-p
320 :getter %window-get-icon-list
321 :setter "gtk_window_set_icon_list"
322 :accessor window-icon-list
324 :type (glist gdk:pixbuf))
327 :getter "gtk_window_get_mnemonic_modifier"
328 :setter "gtk_window_set_mnemonic_modifier"
329 :accessor window-mnemonic-modifier
330 :initarg :mnemonic-modifier
331 :type gdk:modifier-type)
332 #?-(pkg-exists-p "gtk+-2.0" :atleast-version "2.10.0")
335 :getter "gtk_window_get_transient_for"
336 :setter "gtk_window_set_transient_for"
337 :accessor window-transient-for
338 :initarg :transient-for
342 :getter "gtk_window_get_group"
343 :setter (setf window-group)
347 (default-width :merge t :unbound -1)
348 (default-height :merge t :unbound -1)))
351 :dependencies (window)
355 :accessor window-group-grabs
356 :type (gslist window))))
362 :getter "gtk_tooltips_get_enabled"
363 :setter (setf tooltips-enabled-p)
364 :reader tooltips-enabled-p
372 :getter menu-item-label
373 :setter (setf menu-item-label)
376 :allocation :user-data
378 :initarg :use-underline
379 :accessor menu-item-use-underline-p)
382 :getter "gtk_menu_item_get_right_justified"
383 :setter "gtk_menu_item_set_right_justified"
384 :accessor menu-item-right-justified-p
385 :initarg :right-justified
387 #?-(pkg-exists-p "gtk+-2.0" :atleast-version "2.12.0")
390 :getter "gtk_menu_item_get_submenu"
391 :setter "gtk_menu_item_set_submenu"
392 :accessor menu-item-submenu
400 :getter "gtk_menu_shell_get_take_focus"
401 :setter "gtk_menu_shell_set_take_focus"
402 :accessor menu-shell-take-focus-p
405 ("GtkColorSelectionDialog"
409 :reader color-selection-dialog-colorsel
413 :reader color-selection-dialog-ok-button
417 :reader color-selection-dialog-cancel-button
421 :reader color-selection-dialog-help-button
426 (#?-(pkg-exists-p "gtk+-2.0" :atleast-version "2.8.0")
429 :reader scrolled-window-hscrollbar
431 #?-(pkg-exists-p "gtk+-2.0" :atleast-version "2.8.0")
434 :reader scrolled-window-vscrollbar
436 #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.8.0")
439 :getter "gtk_scrolled_window_get_hscrollbar"
440 :reader scrolled-window-hscrollbar
442 #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.8.0")
445 :getter "gtk_scrolled_window_get_vscrollbar"
446 :reader scrolled-window-vscrollbar
453 :getter "gtk_paned_get_child1"
454 :setter "gtk_paned_add1"
455 :accessor paned-child1
460 :getter "gtk_paned_get_child2"
461 :setter "gtk_paned_add2"
462 :accessor paned-child2
470 :getter "gtk_menu_get_accel_group"
471 :setter "gtk_menu_set_accel_group"
472 :accessor menu-accel-group
473 :initarg :accel-group
477 :getter "gtk_menu_get_active"
478 :setter (setf menu-active)
484 :getter "gtk_menu_get_screen"
485 :setter "gtk_menu_set_screen"
486 :accessor menu-screen
491 :getter "gtk_menu_get_attach_widget"
492 :reader menu-attach-widget
494 #?-(pkg-exists-p "gtk+-2.0" :atleast-version "2.6.0")
497 :getter "gtk_menu_get_tearoff_state"
498 :setter "gtk_menu_set_tearoff_state"
499 :accessor menu-tearoff-state-p
500 :initarg :tearoff-state
507 :getter "gtk_plug_get_id"
509 :type gdk:native-window)))
515 :getter "gtk_socket_get_id"
517 :type gdk:native-window)))
521 ((show-tooltips ;; this slot is equivalent to the property
522 :allocation :virtual ;; "tooltips" in Gtk+ 2.8
523 :getter "gtk_toolbar_get_tooltips"
524 :setter "gtk_toolbar_set_tooltips"
525 :accessor toolbar-show-tooltips-p
526 :initarg :show-tooltips
530 :getter "gtk_toolbar_get_tooltips_object"
531 :reader toolbar-tooltips
533 (toolbar-style ; defined manually to get the accesssor name correct
534 :allocation :property
535 :pname "toolbar-style"
536 :initarg :toolbar-style
537 :accessor toolbar-style
541 :getter "gtk_toolbar_get_n_items"
542 :reader toolbar-n-items
549 :getter "gtk_tool_item_get_use_drag_window"
550 :setter "gtk_tool_item_set_use_drag_window"
551 :accessor tool-item-use-drag-window-p
552 :initarg :drag-window
555 :allocation :user-data
556 :setter (setf tool-item-tip-text)
558 :reader tool-item-tip-text)
560 :allocation :user-data
561 :setter (setf tool-item-tip-private)
562 :initarg :tip-private
563 :reader tool-item-tip-private)))
567 ((stock-id :merge t :initarg :stock)
568 (icon-widget :merge t :initarg :icon)))
570 ("GtkToggleToolButton"
574 :getter "gtk_toggle_tool_button_get_active"
575 :setter "gtk_toggle_tool_button_get_active"
576 :accessor toggle-tool-button-active-p
580 ("GtkRadioToolButton"
584 :getter "gtk_radio_tool_button_get_group"
585 :reader radio-tool-button-group
586 :type (copy-of (gslist widget)))
588 :allocation :user-data
590 :accessor radio-tool-button-value
591 :documentation "Value passed as argument to the activate callback")))
597 :getter %notebook-current-page
598 :setter (setf notebook-current-page)
599 :reader notebook-current-page
601 :initarg :current-page)
604 :getter "gtk_notebook_get_current_page"
605 :setter "gtk_notebook_set_current_page"
607 :initarg :current-page-num
608 :accessor notebook-current-page-num
615 :getter "gtk_ruler_get_metric"
616 :setter "gtk_ruler_set_metric"
617 :accessor ruler-metric
623 ; deprecated properties
624 ((bar-style :ignore t)
625 (adjustment :ignore t)
626 (activity-step :ignore t)
627 (activity-blocks :ignore t)
628 (discrete-blocks :ignore t)))
632 ; deprecated property
633 ((shadow :ignore t)))
637 ; deprecated property
638 ((shadow :ignore t)))
643 :allocation :property :pname "column-spacing"
644 :initarg :column-spacing
647 :allocation :property :pname "row-spacing"
648 :initarg :row-spacing
649 :type unsigned-int)))
655 :getter "gtk_dialog_get_vbox"
660 :getter "gtk_dialog_get_action_area"
661 :reader dialog-action-area
668 :getter "gtk_entry_get_layout"
673 :getter "gtk_entry_get_completion"
674 :setter "gtk_entry_set_completion"
676 :accessor entry-completion
677 :type entry-completion)
678 (max-length :merge t :unbound 0)
681 :getter "gtk_entry_get_alignment"
682 :setter "gtk_entry_set_alignment"
684 :accessor entry-alignment
686 #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.6.0")
687 (width-chars :merge t :unbound -1)
688 #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.12.0")
691 :getter "gtk_entry_get_cursor_hadjustment"
692 :setter "gtk_entry_set_cursor_hadjustment"
693 :initarg :cursor-hadjustment
694 :accessor entry-cursor-hadjustment
697 ("GtkEntryCompletion"
701 :getter "gtk_entry_completion_get_entry"
702 :reader entry-completion-entry
704 (minimum-key-length :merge t :unbound -1)
705 ;; Need to be manually defined, as this value through the property
706 ;; mechanism doesn't work
707 #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.6.0")
710 :getter "gtk_entry_completion_get_text_column"
711 :setter "gtk_entry_completion_set_text_column"
713 :accessor entry-completion-text-column
720 :getter "gtk_radio_button_get_group"
721 :reader radio-button-group
722 :type (copy-of (gslist widget)))
724 :allocation :user-data
726 :accessor radio-button-value
727 :documentation "Value passed as argument to the activate callback")))
733 :getter "gtk_radio_menu_item_get_group"
734 :reader radio-menu-item-group
735 :type (copy-of (gslist widget)))
737 :allocation :user-data
739 :accessor radio-menu-item-value
740 :documentation "Value passed as argument to the activate callback")))
746 :getter "gtk_layout_get_bin_window"
747 :reader layout-bin-window
754 :getter "gtk_fixed_get_has_window"
755 :setter "gtk_fixed_set_has_window"
756 :reader fixed-has-window-p
764 :getter "gtk_range_get_value"
765 :setter "gtk_range_set_value"
767 :accessor range-value
772 :setter (setf range-upper)
777 :setter (setf range-lower)
781 :getter range-step-increment
782 :setter (setf range-step-increment)
783 :initarg :step-increment)
786 :getter range-page-increment
787 :setter (setf range-page-increment)
788 :initarg :page-increment)))
793 #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.6.0")
794 (pixel-size :merge t :unbound -1)))
800 :getter "gtk_label_get_layout"
802 :type pango:layout)))
808 :getter "gtk_scale_get_layout"
810 :type pango:layout)))
816 :getter "gtk_editable_get_editable"
817 :setter "gtk_editable_set_editable"
818 :reader editable-editable-p
823 :getter "gtk_editable_get_position"
824 :setter "gtk_editable_set_position"
825 :reader editable-position
830 :getter editable-text
831 :setter (setf editable-text)
838 :getter "gtk_file_chooser_get_filename"
839 :setter "gtk_file_chooser_set_filename"
840 :accessor file-chooser-filename
845 :setter "gtk_file_chooser_set_current_name"
846 :accessor file-chooser-current-name
847 :initarg :current-name
851 :setter "gtk_file_chooser_set_current_folder"
852 :setter "gtk_file_chooser_get_current_folder"
853 :accessor file-chooser-current-folder
854 :initarg :current-folder
858 :getter "gtk_file_chooser_get_uri"
859 :setter "gtk_file_chooser_set_uri"
860 :accessor file-chooser-uri
865 :setter "gtk_file_chooser_set_current_folder_uri"
866 :setter "gtk_file_chooser_get_current_folder_uri"
867 :accessor file-chooser-current-folder-uri
868 :initarg :current-folder-uri
875 :getter "gtk_file_filter_get_name"
876 :setter "gtk_file_filter_set_name"
877 :accessor file-filter-name
885 :getter "gtk_tree_view_get_columns"
886 :reader tree-view-columns
887 :type (glist tree-view-column))
890 :getter "gtk_tree_view_get_selection"
891 :reader tree-view-selection
892 :type tree-selection)))
898 :getter "gtk_tree_model_get_n_columns"
899 :reader tree-model-n-columns
902 ("GtkTreeModelFilter"
904 ((virtual-root :merge t :type tree-path)))
910 :getter "gtk_tree_selection_get_mode"
911 :setter "gtk_tree_selection_set_mode"
912 :accessor tree-selection-mode
914 :type selection-mode)
917 :getter "gtk_tree_selection_get_tree_view"
918 :reader tree-selection-tree-view
925 :getter "gtk_combo_box_get_active_iter"
926 :setter "gtk_combo_box_set_active_iter"
927 :accessor combo-box-active-iter
934 :getter "gtk_text_buffer_get_line_count"
935 :reader text-buffer-line-count
939 :getter "gtk_text_buffer_get_char_count"
940 :reader text-buffer-char-count
944 :getter "gtk_text_buffer_get_modified"
945 :setter "gtk_text_buffer_set_modified"
946 :accessor text-buffer-modifed-p
953 :getter "gtk_text_view_get_default_attributes"
954 :reader text-view-default-attributes
955 :type text-attributes)))
961 :getter "gtk_text_tag_table_get_size"
962 :reader text-tag-table-size
969 :getter "gtk_text_tag_get_priority"
970 :setter "gtk_text_tag_set_priority"
971 :accessor text-tag-priority
974 :merge t :type pango:weight)))
980 :getter "gtk_text_mark_get_buffer"
981 :reader text-mark-buffer
985 :getter "gtk_text_mark_get_name"
986 :reader text-mark-name
987 :type (copy-of string))
990 :getter "gtk_text_mark_get_visible"
991 :setter "gtk_text_mark_set_visible"
992 :accessor text-mark-visible-p
996 :getter "gtk_text_mark_get_deleted"
997 :reader text-mark-deleted-p
1000 :allocation :virtual
1001 :getter "gtk_text_mark_get_left_gravity"
1002 :reader text-mark-left-gravity-p
1009 :allocation :virtual
1010 :getter "gtk_ui_manager_get_action_groups"
1011 :reader ui-manager-action-groups
1012 :type (copy-of (glist action-group)))
1014 :allocation :virtual
1015 :getter "gtk_ui_manager_get_accel_group"
1016 :reader ui-manager-accel-group
1017 :type accel-group)))
1019 ("GtkUIManagerItemType"
1020 :type ui-manager-item-type)
1025 :allocation :user-data :initarg :accelerator
1026 :reader action-accelerator)))
1028 #?-(pkg-exists-p "gtk+-2.0" :atleast-version "2.10.0")
1032 :allocation :virtual
1033 :getter "gtk_toggle_action_get_active"
1034 :setter "gtk_toggle_action_set_active"
1035 ; :initarg :active ;; Handled by initialize-instance
1036 :accessor toggle-action-active-p
1042 :allocation :virtual
1043 :getter "gtk_radio_button_get_group"
1044 :reader radio-action-group
1045 :type (copy-of (gslist widget)))
1047 :allocation :property :pname "value" :type int
1048 :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.")
1050 :allocation :user-data :initarg :value :accessor radio-action-value)
1051 #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.10.0")
1052 ;; Use radio-action-get-current-value to get the current value of
1053 ;; a radio action group
1054 (current-value :ignore t)))
1056 ("GtkColorSelection"
1059 :allocation :virtual
1060 :getter "gtk_color_selection_get_previous_alpha"
1061 :setter "gtk_color_selection_set_previous_alpha"
1062 :initarg :previous-alpha
1063 :accessor color-selection-previous-alpha
1064 :type (unsigned 16))
1066 :allocation :virtual
1067 :getter color-selection-previous-color
1068 :setter "gtk_color_selection_set_previous_color"
1069 :initarg :previous-color
1070 :writer (setf color-selection-previous-color)
1075 ; deprecated property
1081 :allocation :virtual
1082 :getter "gtk_clipboard_get_display"
1083 :reader clipboard-display
1084 :type gdk:display)))
1086 #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.6.0")
1090 :allocation :virtual
1091 :getter %icon-view-get-text-column
1092 :setter %icon-view-set-text-column
1093 :boundp %icon-view-text-column-boundp
1094 :initarg :text-column
1095 :accessor icon-view-text-column)
1097 :allocation :virtual
1098 :getter %icon-view-get-markup-column
1099 :setter %icon-view-set-tmarkup-column
1100 :boundp %icon-view-markup-column-boundp
1101 :initarg :markup-column
1102 :accessor icon-view-markup-column)
1104 :allocation :virtual
1105 :getter %icon-view-get-pixbuf-column
1106 :setter %icon-view-set-pixbuf-column
1107 :boundp %icon-view-pixbuf-column-boundp
1108 :initarg :pixbuf-column
1109 :accessor icon-view-pixbuf-column)))
1111 #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.10.0")
1115 :allocation :virtual
1116 :getter "gtk_assistant_get_current_page"
1117 :setter "gtk_assistant_set_current_page"
1118 :accessor assistant-current-page
1121 :allocation :virtual
1122 :getter "gtk_assistant_get_n_page"
1123 :reader assistant-current-page
1126 #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.10.0")
1130 :allocation :virtual
1131 :getter "gtk_recent_chooser_get_current_item"
1132 :reader recent-chooser-current-item
1135 :allocation :virtual
1136 :getter "gtk_recent_chooser_get_current_uri"
1137 :setter %recent-chooser-set-current-uri
1138 :accessor recent-chooser-current-uri
1142 ("GtkFundamentalType" :ignore t)
1143 ("GtkArgFlags" :ignore t)
1146 ;; Deprecated widgets
1147 ("GtkCList" :ignore-prefix t)
1148 ("GtkCTree" :ignore-prefix t)
1149 ("GtkList" :ignore t)
1150 ("GtkListItem" :ignore t)
1151 ("GtkTree" :ignore t)
1152 ("GtkTreeItem" :ignore t)
1153 ("GtkItemFactory" :ignore t)
1154 ("GtkText" :ignore t)
1155 ("GtkPacker" :ignore-prefix t)
1156 ("GtkPixmap" :ignore t)
1157 ("GtkPreview" :ignore-prefix t)
1158 ("GtkProgres" :ignore t)
1159 ("GtkTipsQuery" :ignore t)
1160 ("GtkOldEditable" :ignore t)
1161 ("GtkCombo" :ignore t)
1162 ("GtkOptionMenu" :ignore t)
1163 ("GtkFileSelection" :ignore t)
1167 ("GtkFileSystemModule" :ignore t)
1168 ("GtkIMModule" :ignore t)
1169 ("GtkThemeEngine" :ignore t))
1172 (defclass text-iter (boxed)
1174 :allocation :virtual
1175 :getter "gtk_text_iter_get_buffer"
1176 :reader text-iter-buffer
1177 :type pointer) ;text-buffer)
1179 :allocation :virtual
1180 :getter "gtk_text_iter_get_offset"
1181 :setter "gtk_text_iter_set_offset"
1182 :accessor text-iter-offset
1185 :allocation :virtual
1186 :getter "gtk_text_iter_get_line"
1187 :setter "gtk_text_iter_set_line"
1188 :accessor text-iter-line
1191 :allocation :virtual
1192 :getter "gtk_text_iter_get_line_offset"
1193 :setter "gtk_text_iter_set_line_offset"
1194 :accessor text-iter-line-offset
1197 :allocation :virtual
1198 :getter "gtk_text_iter_get_line_index"
1199 :setter "gtk_text_iter_set_line_index"
1200 :accessor text-iter-line-index
1203 :allocation :virtual
1204 :getter "gtk_text_iter_get_visible_line_index"
1205 :setter "gtk_text_iter_set_visible_line_index"
1206 :accessor text-iter-visible-line-index
1208 (visible-line-offset
1209 :allocation :virtual
1210 :getter "gtk_text_iter_get_visible_line_offset"
1211 :setter "gtk_text_iter_set_visible_line_offset"
1212 :accessor text-iter-visible-line-offset
1214 (:metaclass boxed-class)
1215 (:size #.(* 14 (size-of 'pointer))))
1218 (defclass tooltips-data (struct)
1221 :reader tooltips-data-tooltips
1225 :reader tooltips-data-widget
1229 :reader tooltips-data-tip-text
1233 :reader tooltips-data-tip-private
1235 (:metaclass struct-class))
1237 (defclass file-filter-info (struct)
1241 :type file-filter-flags)
1252 :initarg :display-name
1258 (:metaclass struct-class))
1261 (defclass accel-key (struct)
1267 :type gdk:modifier-type)
1270 :type (unsigned 16)))
1271 (:metaclass struct-class))
1273 (defclass accel-group-entry (struct)
1277 :type (inlined accel-key))
1284 (:metaclass struct-class))
1286 #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.8.0")
1287 (define-enum-type drop-position
1288 :no-drop :drop-into :drop-left :drop-right :drop-above :drop-below)
1291 (defclass target-entry (struct)
1294 :accessor target-entry-target
1299 :accessor target-entry-flags
1304 :accessor target-entry-id
1306 :type unsigned-int))
1307 (:metaclass struct-class))
1310 (defclass selection-data (boxed)
1312 :allocation :alien :type gdk:atom
1313 :reader selection-data-selection)
1315 :allocation :alien :type gdk:atom
1316 :reader selection-data-target)
1318 :allocation :alien :type gdk:atom
1319 :reader selection-data-type)
1321 :allocation :alien :type int
1322 :reader selection-data-format)
1324 :allocation :alien :type pointer
1325 :reader selection-data-data)
1327 :allocation :alien :type int
1328 :reader selection-data-length)
1330 :allocation :alien :type gdk:display
1331 :reader selection-data-display))
1332 (:metaclass boxed-class))
1335 #?-(pkg-exists-p "gtk+-2.0" :atleast-version "2.10.0")
1336 (defclass target-list (proxy)
1338 (:metaclass proxy-class)
1339 (:ref target-list-ref)
1340 (:unref target-list-unref))
1342 #?(pkg-exists-p "gtk+-2.0" :atleast-version "2.10.0")
1343 (defclass target-list (boxed)
1345 (:metaclass boxed-class))