1 ;; Common Lisp bindings for GTK+ v2.0
2 ;; Copyright (C) 1999-2001 Espen S. Johnsen <esj@stud.cs.uit.no>
4 ;; This library is free software; you can redistribute it and/or
5 ;; modify it under the terms of the GNU Lesser General Public
6 ;; License as published by the Free Software Foundation; either
7 ;; version 2 of the License, or (at your option) any later version.
9 ;; This library is distributed in the hope that it will be useful,
10 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 ;; Lesser General Public License for more details.
14 ;; You should have received a copy of the GNU Lesser General Public
15 ;; License along with this library; if not, write to the Free Software
16 ;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 ;; $Id: gtk.lisp,v 1.8 2002-03-24 13:28:22 espen Exp $
25 (defbinding check-version () string
26 (required-major unsigned-int)
27 (required-minor unsigned-int)
28 (required-micro unsigned-int))
30 (defbinding query-version () nil
31 (major unsigned-int :out)
32 (minor unsigned-int :out)
33 (micro unsigned-int :out))
36 (multiple-value-bind (major minor micro)
39 (format nil "Gtk+ v~A.~A" major minor)
40 (format nil "Gtk+ v~A.~A.~A" major minor micro))))
42 (defbinding get-default-language () string)
50 (defbinding accel-label-refetch () boolean
51 (accel-label accel-label))
56 (defbinding adjustment-changed () nil
57 (adjustment adjustment))
59 (defbinding adjustment-value-changed () nil
60 (adjustment adjustment))
62 (defbinding adjustment-clamp-page () nil
63 (adjustment adjustment)
69 ;;; Alignment -- no functions
70 ;;; Arrow -- no functions
80 (declaim (optimize (ext:inhibit-warnings 3)))
81 (defun container-remove (container child))
82 (defun container-add (container child)))
85 (defun (setf bin-child) (child bin)
86 (when-bind (current-child (bin-child bin))
87 (container-remove bin current-child))
88 (container-add bin child)
93 ;;; Button box -- no functions
102 (defbinding box-pack-start () nil
107 (padding unsigned-int))
109 (defbinding box-pack-end () nil
114 (padding unsigned-int))
116 (defun box-pack (box child &key (pack :start) (expand t) (fill t) (padding 0))
118 (box-pack-start box child expand fill padding)
119 (box-pack-end box child expand fill padding)))
121 (defbinding box-reorder-child () nil
126 (defbinding box-query-child-packing () nil
129 (expand boolean :out)
131 (padding unsigned-int :out)
132 (pack-type pack-type :out))
134 (defbinding box-set-child-packing () nil
139 (padding unsigned-int)
140 (pack-type pack-type))
146 (defbinding button-pressed () nil
149 (defbinding button-released () nil
152 (defbinding button-clicked () nil
155 (defbinding button-enter () nil
158 (defbinding button-leave () nil
165 (defbinding calendar-select-month () int
170 (defbinding calendar-select-day () nil
174 (defbinding calendar-mark-day () int
178 (defbinding calendar-unmark-day () int
182 (defbinding calendar-clear-marks () nil
185 (defbinding calendar-display-options () nil
187 (options calendar-display-options))
189 (defbinding (calendar-date "gtk_calendar_get_date") () nil
191 (year unsigned-int :out)
192 (month unsigned-int :out)
193 (day unsigned-int :out))
195 (defbinding calendar-freeze () nil
198 (defbinding calendar-thaw () nil
211 ;;; Cell renderer pixbuf -- no functions
215 ;;; Cell renderer text
219 ;;; Cell renderer toggle -- no functions
223 ;;; Check button -- no functions
229 (defbinding check-menu-item-toggled () nil
230 (check-menu-item check-menu-item))
239 (defbinding (color-selection-is-adjusting-p
240 "gtk_color_selection_is_adjusting") () boolean
241 (colorsel color-selection))
245 ;;; Color selection dialog -- no functions
251 (defbinding combo-set-value-in-list () nil
254 (ok-if-empty boolean))
256 (defbinding combo-set-item-string () nil
261 (defbinding combo-set-popdown-strings () nil
263 (strings (glist string)))
265 (defbinding combo-disable-activate () nil
272 (defmethod initialize-instance ((dialog dialog) &rest initargs)
273 (apply #'call-next-method dialog (plist-remove initargs :child))
274 (dolist (button-definition (get-all initargs :button))
275 (apply #'dialog-add-button dialog button-definition))
276 (dolist (child (get-all initargs :child))
277 (apply #'dialog-add-child dialog (mklist child))))
280 (defvar %*response-id-key* (gensym))
282 (defun %dialog-find-response-id-num (dialog response-id create-p)
284 (cadr (assoc response-id (rest (type-expand-1 'response-type))))
285 (let* ((response-ids (object-data dialog %*response-id-key*))
286 (response-id-num (position response-id response-ids)))
292 (setf (cdr (last response-ids)) (list response-id))
293 (1- (length response-ids)))
295 (setf (object-data dialog %*response-id-key*) (list response-id))
298 (error "Invalid response id: ~A" response-id))))))
300 (defun %dialog-find-response-id (dialog response-id-num)
301 (if (< response-id-num 0)
304 (list response-id-num)
305 (rest (type-expand-1 'response-type)) :test #'equalp))
306 (nth response-id-num (object-data dialog %*response-id-key*))))
309 (defmethod signal-connect ((dialog dialog) signal function &key object)
312 #'(lambda (dialog response-id-num)
313 (let ((response-id (%dialog-find-response-id dialog response-id-num)))
315 ((eq object t) (funcall function dialog response-id))
316 (object (funcall function object response-id))
317 (t (funcall function response-id))))))
319 (call-next-method))))
322 (defbinding dialog-response (dialog response-id) nil
324 ((%dialog-find-response-id-num dialog response-id nil) int))
326 (defbinding %dialog-set-default-response () nil
328 (response-id-num int))
330 (defun dialog-set-default-response (dialog response-id)
331 (%dialog-set-default-response
332 dialog (%dialog-find-response-id-num dialog response-id nil)))
334 (defbinding dialog-set-response-sensitive (dialog response-id sensitive) nil
336 ((%dialog-find-response-id-num dialog response-id nil) int)
340 (defbinding %dialog-add-button () button
343 (response-id-num int))
345 (defun dialog-add-button (dialog label &optional response-id default-p)
346 (let* ((response-id-num
348 (%dialog-find-response-id-num dialog response-id t)
349 (length (object-data dialog %*response-id-key*))))
350 (button (%dialog-add-button dialog label response-id-num)))
352 (%dialog-find-response-id-num dialog button t))
354 (%dialog-set-default-response dialog response-id-num))
358 (defbinding %dialog-add-action-widget () button
360 (action-widget widget)
361 (response-id-num int))
363 (defun dialog-add-action-widget (dialog widget &optional (response-id widget)
365 (let ((response-id-num (%dialog-find-response-id-num dialog response-id t)))
366 (%dialog-add-action-widget dialog widget response-id-num)
368 (%dialog-set-default-response dialog response-id-num))
372 (defun dialog-add-child (dialog child &rest args)
373 (apply #'container-add (slot-value dialog 'vbox) child args))
375 (defmethod container-children ((dialog dialog))
376 (container-children (dialog-vbox dialog)))
378 (defmethod (setf container-children) (children (dialog dialog))
379 (setf (container-children (dialog-vbox dialog)) children))
383 ;;; Drawing area -- no functions
393 (defbinding toggle-button-toggled () nil
394 (toggle-button toggle-button))
399 (defbinding label-select-region () nil
409 (defbinding %radio-button-get-group () pointer
410 (radio-button radio-button))
412 (defbinding %radio-button-set-group () nil
413 (radio-button radio-button)
416 (defun radio-button-add-to-group (button1 button2)
417 "Add BUTTON1 to the group which BUTTON2 belongs to."
418 (%radio-button-set-group button1 (%radio-button-get-group button2)))
421 (defmethod initialize-instance ((button radio-button)
422 &rest initargs &key group-with)
423 (declare (ignore initargs))
426 (radio-button-add-to-group item group-with)))
431 (defbinding %option-menu-set-menu () nil
432 (option-menu option-menu)
435 (defbinding %option-menu-remove-menu () nil
436 (option-menu option-menu))
438 (defun (setf option-menu-menu) (menu option-menu)
440 (%option-menu-remove-menu option-menu)
441 (%option-menu-set-menu option-menu menu))
448 (defbinding item-select () nil
451 (defbinding item-deselect () nil
454 (defbinding item-toggle () nil
461 (defun (setf menu-item-label) (label menu-item)
462 (make-instance 'accel-label
463 :label label :xalign 0.0 :yalign 0.5 :accel-widget menu-item
464 :visible t :parent menu-item)
467 (defbinding %menu-item-set-submenu () nil
468 (menu-item menu-item)
471 (defbinding %menu-item-remove-submenu () nil
472 (menu-item menu-item))
474 (defun (setf menu-item-submenu) (submenu menu-item)
476 (%menu-item-remove-submenu menu-item)
477 (%menu-item-set-submenu menu-item submenu))
480 (defbinding menu-item-select () nil
481 (menu-item menu-item))
483 (defbinding menu-item-deselect () nil
484 (menu-item menu-item))
486 (defbinding menu-item-activate () nil
487 (menu-item menu-item))
493 (defbinding %radio-menu-item-get-group () pointer
494 (radio-menu-item radio-menu-item))
496 (defbinding %radio-menu-item-set-group () nil
497 (radio-menu-item radio-menu-item)
500 (defun radio-menu-item-add-to-group (item1 item2)
501 "Add ITEM1 to the group which ITEM2 belongs to."
502 (%radio-menu-item-set-group item1 (%radio-menu-item-get-group item2)))
504 (defmethod initialize-instance ((item radio-menu-item)
505 &rest initargs &key group-with)
506 (declare (ignore initargs))
509 (radio-menu-item-add-to-group item group-with)))
515 (defbinding %window-set-wmclass () nil
517 (wmclass-name string)
518 (wmclass-class string))
520 (defun (setf window-wmclass) (wmclass window)
521 (%window-set-wmclass window (svref wmclass 0) (svref wmclass 1))
522 (values (svref wmclass 0) (svref wmclass 1)))
525 (defbinding window-wmclass () nil
527 (wmclass-name string :out)
528 (wmclass-class string :out))
530 (defbinding window-add-accel-group () nil
532 (accel-group accel-group))
534 (defbinding window-remove-accel-group () nil
536 (accel-group accel-group))
538 (defbinding window-activate-focus () int
541 (defbinding window-activate-default () int
544 (defbinding window-set-transient-for () nil
548 ;(defbinding window-set-geometry-hints)
554 (defbinding file-selection-complete () nil
555 (file-selection file-selection)
562 (defun (setf scrolled-window-scrollbar-policy) (policy window)
563 (setf (scrolled-window-hscrollbar-policy window) policy)
564 (setf (scrolled-window-vscrollbar-policy window) policy))
566 (defbinding scrolled-window-add-with-viewport () nil
567 (scrolled-window scrolled-window)
585 (defbinding (statusbar-context-id "gtk_statusbar_get_context_id")
587 (statusbar statusbar)
588 (context-description string))
590 (defbinding statusbar-push () unsigned-int
591 (statusbar statusbar)
592 (context-id unsigned-int)
595 (defbinding statusbar-pop () nil
596 (statusbar statusbar)
597 (context-id unsigned-int))
599 (defbinding statusbar-remove () nil
600 (statusbar statusbar)
601 (context-id unsigned-int)
602 (message-id unsigned-int))
608 (defbinding fixed-put () nil
614 (defbinding fixed-move () nil
624 (defbinding (notebook-insert-page "gtk_notebook_insert_page_menu")
625 (notebook position child tab-label &optional menu-label) nil
628 ((if (stringp tab-label)
629 (label-new tab-label)
631 ((if (stringp menu-label)
632 (label-new menu-label)
633 menu-label) (or null widget))
636 (defun notebook-append-page (notebook child tab-label &optional menu-label)
637 (notebook-insert-page notebook -1 child tab-label menu-label))
639 (defun notebook-prepend-page (notebook child tab-label &optional menu-label)
640 (notebook-insert-page notebook 0 child tab-label menu-label))
642 (defbinding notebook-remove-page () nil
646 ; (defun notebook-current-page-num (notebook)
647 ; (let ((page-num (notebook-current-page notebook)))
648 ; (if (= page-num -1)
652 (defbinding (notebook-nth-page-child "gtk_notebook_get_nth_page") () widget
656 (defun notebook-page-child (notebook)
657 (notebook-nth-page-child notebook (notebook-page notebook)))
659 (defbinding %notebook-page-num () int
663 (defun notebook-child-num (notebook child)
664 (let ((page-num (%notebook-page-num notebook child)))
669 (defbinding notebook-next-page () nil
672 (defbinding notebook-prev-page () nil
675 (defbinding notebook-popup-enable () nil
678 (defbinding notebook-popup-disable () nil
681 ; (defbinding (notebook-tab-label "gtk_notebook_get_tab_label")
682 ; (notebook ref) widget
683 ; (notebook notebook)
684 ; ((if (typep ref 'widget)
686 ; (notebook-nth-page-child notebook ref))
689 ; (defbinding %notebook-set-tab-label () nil
690 ; (notebook notebook)
692 ; (tab-label widget))
694 ; (defun (setf notebook-tab-label) (tab-label notebook reference)
695 ; (let ((tab-label-widget (if (stringp tab-label)
696 ; (label-new tab-label)
698 ; (%notebook-set-tab-label
700 ; (if (typep reference 'widget)
702 ; (notebook-nth-page-child notebook reference))
706 ; (defbinding (notebook-menu-label "gtk_notebook_get_menu_label")
707 ; (notebook ref) widget
708 ; (notebook notebook)
709 ; ((if (typep ref 'widget)
711 ; (notebook-nth-page-child notebook ref))
714 ; (defbinding %notebook-set-menu-label () nil
715 ; (notebook notebook)
717 ; (menu-label widget))
719 ; (defun (setf notebook-menu-label) (menu-label notebook reference)
720 ; (let ((menu-label-widget (if (stringp menu-label)
721 ; (label-new menu-label)
723 ; (%notebook-set-menu-label
725 ; (if (typep reference 'widget)
727 ; (notebook-nth-page-child notebook reference))
729 ; menu-label-widget))
731 (defbinding notebook-query-tab-label-packing (notebook ref) nil
733 ((if (typep ref 'widget)
735 (notebook-nth-page-child notebook ref))
737 (expand boolean :out)
739 (pack-type pack-type :out))
742 notebook-set-tab-label-packing (notebook ref expand fill pack-type) nil
744 ((if (typep ref 'widget)
746 (notebook-nth-page-child notebook ref))
750 (pack-type pack-type))
752 (defbinding notebook-reorder-child () nil
761 (defbinding paned-pack1 () nil
767 (defbinding paned-pack2 () nil
774 (defbinding paned-child1 () widget
776 (resize boolean :out)
777 (shrink boolean :out))
780 (defbinding paned-child2 () widget
782 (resize boolean :out)
783 (shrink boolean :out))
785 (defun (setf paned-child1) (child paned)
786 (paned-pack1 paned child nil t))
788 (defun (setf paned-child2) (child paned)
789 (paned-pack2 paned child t t))
795 (defbinding layout-put () nil
801 (defbinding layout-move () nil
807 (defbinding layout-set-size () nil
812 (defbinding layout-get-size () nil
821 (defbinding menu-shell-insert () nil
822 (menu-shell menu-shell)
823 (menu-item menu-item)
826 (defun menu-shell-append (menu-shell menu-item)
827 (menu-shell-insert menu-shell menu-item -1))
829 (defun menu-shell-prepend (menu-shell menu-item)
830 (menu-shell-insert menu-shell menu-item 0))
832 (defbinding menu-shell-deactivate () nil
833 (menu-shell menu-shell))
835 (defbinding menu-shell-select-item () nil
836 (menu-shell menu-shell)
837 (menu-item menu-item))
839 (defbinding menu-shell-deselect () nil
840 (menu-shell menu-shell))
842 (defbinding menu-shell-activate-item () nil
843 (menu-shell menu-shell)
844 (menu-item menu-item)
845 (fore-deactivate boolean))
851 ; (defbinding menu-bar-insert () nil
852 ; (menu-bar menu-bar)
856 ; (defun menu-bar-append (menu-bar menu)
857 ; (menu-bar-insert menu-bar menu -1))
859 ; (defun menu-bar-prepend (menu-bar menu)
860 ; (menu-bar-insert menu-bar menu 0))
866 ;(defun menu-popup ...)
868 (defbinding menu-reposition () nil
871 (defbinding menu-popdown () nil
874 (defbinding %menu-set-active () nil
876 (index unsigned-int))
878 (defun (setf menu-active) (menu index)
879 (%menu-set-active menu index))
881 (defbinding menu-reorder-child () nil
883 (menu-item menu-item)
889 (defbinding table-resize () nil
892 (columns unsigned-int))
894 (defbinding table-attach (table child left right top bottom
895 &key (x-options '(:expand :fill))
896 (y-options '(:expand :fill))
897 (x-padding 0) (y-padding 0)) nil
903 (bottom unsigned-int)
904 (x-options attach-options)
905 (y-options attach-options)
906 (x-padding unsigned-int)
907 (y-padding unsigned-int))
910 (defbinding %table-set-row-spacing () nil
913 (spacing unsigned-int))
915 (defbinding %table-set-row-spacings () nil
917 (spacing unsigned-int))
919 (defun (setf table-row-spacing) (spacing table &optional row)
921 (%table-set-row-spacing table row spacing)
922 (%table-set-row-spacings table spacing))
925 (defbinding %table-get-row-spacing () unsigned-int
929 (defbinding %table-get-default-row-spacing () unsigned-int
932 (defun table-row-spacing (table &optional row)
934 (%table-get-row-spacing table row)
935 (%table-get-default-row-spacing table)))
938 (defbinding %table-set-col-spacing () nil
941 (spacing unsigned-int))
943 (defbinding %table-set-col-spacings () nil
945 (spacing unsigned-int))
947 (defun (setf table-col-spacing) (spacing table &optional col)
949 (%table-set-col-spacing table col spacing)
950 (%table-set-col-spacings table spacing))
953 (defbinding %table-get-col-spacing () unsigned-int
957 (defbinding %table-get-default-col-spacing () unsigned-int
960 (defun table-col-spacing (table &optional col)
962 (%table-get-col-spacing table col)
963 (%table-get-default-col-spacing table)))
970 (defbinding toolbar-num-children () int
973 (defun %toolbar-position-num (toolbar position)
976 (:append (toolbar-num-children toolbar))
978 (assert (and (>= position 0) (< position (toolbar-num-children toolbar))))
981 (defbinding %toolbar-insert-element () widget
983 (type toolbar-child-type)
984 (widget (or null widget))
986 (tooltip-text string)
987 (tooltip-private-text string)
988 (icon (or null widget))
993 (defun toolbar-insert-element (toolbar position
994 &key tooltip-text tooltip-private-text
995 type widget icon text callback)
996 (let* ((icon-widget (typecase icon
997 ((or null widget) icon)
998 (t (pixmap-new icon))))
1000 (%toolbar-insert-element
1001 toolbar (or type (and widget :widget) :button)
1002 widget text tooltip-text tooltip-private-text icon-widget
1003 (%toolbar-position-num toolbar position))))
1005 (signal-connect toolbar-child 'clicked callback))
1008 (defun toolbar-append-element (toolbar &key tooltip-text tooltip-private-text
1009 type widget icon text callback)
1010 (toolbar-insert-element
1011 toolbar :append :type type :widget widget :icon icon :text text
1012 :tooltip-text tooltip-text :tooltip-private-text tooltip-private-text
1013 :callback callback))
1015 (defun toolbar-prepend-element (toolbar &key tooltip-text tooltip-private-text
1016 type widget icon text callback)
1017 (toolbar-insert-element
1018 toolbar :prepend :type type :widget widget :icon icon :text text
1019 :tooltip-text tooltip-text :tooltip-private-text tooltip-private-text
1020 :callback callback))
1022 (defun toolbar-insert-space (toolbar position)
1023 (toolbar-insert-element toolbar position :type :space))
1025 (defun toolbar-append-space (toolbar)
1026 (toolbar-insert-space toolbar :append))
1028 (defun toolbar-prepend-space (toolbar)
1029 (toolbar-insert-space toolbar :prepend))
1031 (defun toolbar-insert-widget (toolbar widget position &key tooltip-text
1032 tooltip-private-text callback)
1033 (toolbar-insert-element
1034 toolbar position :widget widget :tooltip-text tooltip-text
1035 :tooltip-private-text tooltip-private-text :callback callback))
1037 (defun toolbar-append-widget (toolbar widget &key tooltip-text
1038 tooltip-private-text callback)
1039 (toolbar-insert-widget
1040 toolbar widget :append :tooltip-text tooltip-text
1041 :tooltip-private-text tooltip-private-text :callback callback))
1043 (defun toolbar-prepend-widget (toolbar widget &key tooltip-text
1044 tooltip-private-text callback)
1045 (toolbar-insert-widget
1046 toolbar widget :prepend :tooltip-text tooltip-text
1047 :tooltip-private-text tooltip-private-text :callback callback))
1049 (defun toolbar-insert-item (toolbar text icon position &key tooltip-text
1050 tooltip-private-text callback)
1051 (toolbar-insert-element
1052 toolbar position :text text :icon icon :callback callback
1053 :tooltip-text tooltip-text :tooltip-private-text tooltip-private-text))
1055 (defun toolbar-append-item (toolbar text icon &key tooltip-text
1056 tooltip-private-text callback)
1057 (toolbar-insert-item
1058 toolbar text icon :append :callback callback
1059 :tooltip-text tooltip-text :tooltip-private-text tooltip-private-text))
1062 (defun toolbar-prepend-item (toolbar text icon &key tooltip-text
1063 tooltip-private-text callback)
1064 (toolbar-insert-item
1065 toolbar text icon :prepend :callback callback
1066 :tooltip-text tooltip-text :tooltip-private-text tooltip-private-text))
1068 (defun toolbar-enable-tooltips (toolbar)
1069 (setf (toolbar-tooltips-p toolbar) t))
1071 (defun toolbar-disable-tooltips (toolbar)
1072 (setf (toolbar-tooltips-p toolbar) nil))
1083 (defbinding editable-select-region (editable &optional (start 0) end) nil
1088 (defbinding editable-insert-text
1089 (editable text &optional (position 0)) nil
1093 ((or position -1) int :in-out))
1095 (defun editable-append-text (editable text)
1096 (editable-insert-text editable text nil))
1098 (defun editable-prepend-text (editable text)
1099 (editable-insert-text editable text 0))
1101 (defbinding editable-delete-text (editable &optional (start 0) end) nil
1106 (defbinding (editable-text "gtk_editable_get_chars")
1107 (editable &optional (start 0) end) string
1112 (defun (setf editable-text) (text editable)
1114 (editable-delete-text
1116 (editable-insert-text editable text))
1117 (editable-delete-text editable))
1120 (defbinding editable-cut-clipboard () nil
1121 (editable editable))
1123 (defbinding editable-copy-clipboard () nil
1124 (editable editable))
1126 (defbinding editable-paste-clipboard () nil
1127 (editable editable))
1129 ; (defbinding editable-claim-selection () nil
1130 ; (editable editable)
1132 ; (time unsigned-int))
1134 (defbinding editable-delete-selection () nil
1135 (editable editable))
1137 ; (defbinding editable-changed () nil
1138 ; (editable editable))
1144 (defun spin-button-value-as-int (spin-button)
1145 (round (spin-button-value spin-button)))
1147 (defbinding spin-button-spin () nil
1148 (spin-button spin-button)
1149 (direction spin-type)
1150 (increment single-float))
1152 (defbinding spin-button-update () nil
1153 (spin-button spin-button))
1159 (defbinding ruler-set-range () nil
1161 (lower single-float)
1162 (upper single-float)
1163 (position single-float)
1164 (max-size single-float))
1166 (defbinding ruler-draw-ticks () nil
1169 (defbinding ruler-draw-pos () nil
1176 (defbinding range-draw-background () nil
1179 (defbinding range-clear-background () nil
1182 (defbinding range-draw-trough () nil
1185 (defbinding range-draw-slider () nil
1188 (defbinding range-draw-step-forw () nil
1191 (defbinding range-slider-update () nil
1194 (defbinding range-trough-click () int
1198 (jump-perc single-float :out))
1200 (defbinding range-default-hslider-update () nil
1203 (defbinding range-default-vslider-update () nil
1206 (defbinding range-default-htrough-click () int
1210 (jump-perc single-float :out))
1212 (defbinding range-default-vtrough-click () int
1216 (jump-perc single-float :out))
1218 (defbinding range-default-hmotion () int
1223 (defbinding range-default-vmotion () int
1232 ; (defbinding scale-draw-value () nil
1239 (defbinding progress-bar-pulse () nil
1240 (progress-bar progress-bar))
1248 (defbinding tooltips-enable () nil
1249 (tooltips tooltips))
1251 (defbinding tooltips-disable () nil
1252 (tooltips tooltips))
1254 (defun (setf tooltips-enabled-p) (enable tooltips)
1256 (tooltips-enable tooltips)
1257 (tooltips-disable tooltips)))
1259 (defbinding tooltips-set-tip () nil
1263 (tip-private string))
1265 (defbinding tooltips-force-window () nil
1266 (tooltips tooltips))
1272 (defbinding rc-add-default-file (filename) nil
1273 ((namestring (truename filename)) string))
1275 (defbinding rc-parse (filename) nil
1276 ((namestring (truename filename)) string))
1278 (defbinding rc-parse-string () nil
1281 (defbinding rc-reparse-all () nil)
1283 (defbinding rc-get-style () style
1288 ;;; Accelerator Groups
1290 (defbinding accel-group-get-default () accel-group)
1292 (deftype-method alien-ref accel-group (type-spec)
1293 (declare (ignore type-spec))
1296 (deftype-method alien-unref accel-group (type-spec)
1297 (declare (ignore type-spec))
1298 '%accel-group-unref)
1300 (defbinding %accel-group-ref () accel-group
1301 (accel-group (or accel-group pointer)))
1303 (defbinding %accel-group-unref () nil
1304 (accel-group (or accel-group pointer)))
1306 (defbinding accel-group-activate (accel-group key modifiers) boolean
1307 (accel-group accel-group)
1308 ((gdk:keyval-from-name key) unsigned-int)
1309 (modifiers gdk:modifier-type))
1311 (defbinding accel-groups-activate (object key modifiers) boolean
1313 ((gdk:keyval-from-name key) unsigned-int)
1314 (modifiers gdk:modifier-type))
1316 (defbinding accel-group-attach () nil
1317 (accel-group accel-group)
1320 (defbinding accel-group-detach () nil
1321 (accel-group accel-group)
1324 (defbinding accel-group-lock () nil
1325 (accel-group accel-group))
1327 (defbinding accel-group-unlock () nil
1328 (accel-group accel-group))
1331 ;;; Accelerator Groups Entries
1333 (defbinding accel-group-get-entry (accel-group key modifiers) accel-entry
1334 (accel-group accel-group)
1335 ((gdk:keyval-from-name key) unsigned-int)
1336 (modifiers gdk:modifier-type))
1338 (defbinding accel-group-lock-entry (accel-group key modifiers) nil
1339 (accel-group accel-group)
1340 ((gdk:keyval-from-name key) unsigned-int)
1341 (modifiers gdk:modifier-type))
1343 (defbinding accel-group-unlock-entry (accel-group key modifiers) nil
1344 (accel-group accel-group)
1345 ((gdk:keyval-from-name key) unsigned-int)
1346 (modifiers gdk:modifier-type))
1348 (defbinding accel-group-add
1349 (accel-group key modifiers flags object signal) nil
1350 (accel-group accel-group)
1351 ((gdk:keyval-from-name key) unsigned-int)
1352 (modifiers gdk:modifier-type)
1355 ((name-to-string signal) string))
1357 (defbinding accel-group-add (accel-group key modifiers object) nil
1358 (accel-group accel-group)
1359 ((gdk:keyval-from-name key) unsigned-int)
1360 (modifiers gdk:modifier-type)
1364 ;;; Accelerator Signals
1366 (defbinding accel-group-handle-add
1367 (object signal-id accel-group key modifiers flags) nil
1369 (signal-id unsigned-int)
1370 (accel-group accel-group)
1371 ((gdk:keyval-from-name key) unsigned-int)
1372 (modifiers gdk:modifier-type)
1373 (flags accel-flags))
1375 (defbinding accel-group-handle-remove
1376 (object accel-group key modifiers) nil
1378 (accel-group accel-group)
1379 ((gdk:keyval-from-name key) unsigned-int)
1380 (modifiers gdk:modifier-type))