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.7 2001-11-12 22:34:28 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
79 (defun (setf bin-child) (child bin)
80 (when-bind (current-child (bin-child bin))
81 (container-remove bin current-child))
82 (container-add bin child)
87 ;;; Button box -- no functions
96 (defbinding box-pack-start () nil
101 (padding unsigned-int))
103 (defbinding box-pack-end () nil
108 (padding unsigned-int))
110 (defun box-pack (box child &key (pack :start) (expand t) (fill t) (padding 0))
112 (box-pack-start box child expand fill padding)
113 (box-pack-end box child expand fill padding)))
115 (defbinding box-reorder-child () nil
120 (defbinding box-query-child-packing () nil
123 (expand boolean :out)
125 (padding unsigned-int :out)
126 (pack-type pack-type :out))
128 (defbinding box-set-child-packing () nil
133 (padding unsigned-int)
134 (pack-type pack-type))
140 (defbinding button-pressed () nil
143 (defbinding button-released () nil
146 (defbinding button-clicked () nil
149 (defbinding button-enter () nil
152 (defbinding button-leave () nil
159 (defbinding calendar-select-month () int
164 (defbinding calendar-select-day () nil
168 (defbinding calendar-mark-day () int
172 (defbinding calendar-unmark-day () int
176 (defbinding calendar-clear-marks () nil
179 (defbinding calendar-display-options () nil
181 (options calendar-display-options))
183 (defbinding (calendar-date "gtk_calendar_get_date") () nil
185 (year unsigned-int :out)
186 (month unsigned-int :out)
187 (day unsigned-int :out))
189 (defbinding calendar-freeze () nil
192 (defbinding calendar-thaw () nil
205 ;;; Cell renderer pixbuf -- no functions
209 ;;; Cell renderer text
213 ;;; Cell renderer toggle -- no functions
217 ;;; Check button -- no functions
223 (defbinding check-menu-item-toggled () nil
224 (check-menu-item check-menu-item))
233 (defbinding (color-selection-is-adjusting-p
234 "gtk_color_selection_is_adjusting") () boolean
235 (colorsel color-selection))
239 ;;; Color selection dialog -- no functions
245 (defbinding combo-set-value-in-list () nil
248 (ok-if-empty boolean))
250 (defbinding combo-set-item-string () nil
255 (defbinding combo-set-popdown-strings () nil
257 (strings (glist string)))
259 (defbinding combo-disable-activate () nil
266 (defmethod initialize-instance ((dialog dialog) &rest initargs)
267 (apply #'call-next-method dialog (plist-remove initargs :child))
268 (dolist (button-definition (get-all initargs :button))
269 (apply #'dialog-add-button dialog button-definition))
270 (dolist (child (get-all initargs :child))
271 (apply #'dialog-add-child dialog (mklist child))))
274 (defvar %*response-id-key* (gensym))
276 (defun %dialog-find-response-id-num (dialog response-id create-p)
278 (cadr (assoc response-id (rest (type-expand-1 'response-type))))
279 (let* ((response-ids (object-data dialog %*response-id-key*))
280 (response-id-num (position response-id response-ids)))
286 (setf (cdr (last response-ids)) (list response-id))
287 (1- (length response-ids)))
289 (setf (object-data dialog %*response-id-key*) (list response-id))
292 (error "Invalid response id: ~A" response-id))))))
294 (defun %dialog-find-response-id (dialog response-id-num)
295 (if (< response-id-num 0)
298 (list response-id-num)
299 (rest (type-expand-1 'response-type)) :test #'equalp))
300 (nth response-id-num (object-data dialog %*response-id-key*))))
303 (defmethod signal-connect ((dialog dialog) signal function &key object)
306 #'(lambda (dialog response-id-num)
307 (let ((response-id (%dialog-find-response-id dialog response-id-num)))
309 ((eq object t) (funcall function dialog response-id))
310 (object (funcall function object response-id))
311 (t (funcall function response-id))))))
313 (call-next-method))))
316 (defbinding dialog-response (dialog response-id) nil
318 ((%dialog-find-response-id-num dialog response-id nil) int))
320 (defbinding %dialog-set-default-response () nil
322 (response-id-num int))
324 (defun dialog-set-default-response (dialog response-id)
325 (%dialog-set-default-response
326 dialog (%dialog-find-response-id-num dialog response-id nil)))
328 (defbinding dialog-set-response-sensitive (dialog response-id sensitive) nil
330 ((%dialog-find-response-id-num dialog response-id nil) int)
334 (defbinding %dialog-add-button () button
337 (response-id-num int))
339 (defun dialog-add-button (dialog label &optional response-id default-p)
340 (let* ((response-id-num
342 (%dialog-find-response-id-num dialog response-id t)
343 (length (object-data dialog %*response-id-key*))))
344 (button (%dialog-add-button dialog label response-id-num)))
346 (%dialog-find-response-id-num dialog button t))
348 (%dialog-set-default-response dialog response-id-num))
352 (defbinding %dialog-add-action-widget () button
354 (action-widget widget)
355 (response-id-num int))
357 (defun dialog-add-action-widget (dialog widget &optional (response-id widget)
359 (let ((response-id-num (%dialog-find-response-id-num dialog response-id t)))
360 (%dialog-add-action-widget dialog widget response-id-num)
362 (%dialog-set-default-response dialog response-id-num))
366 (defun dialog-add-child (dialog child &rest args)
367 (apply #'container-add (slot-value dialog 'vbox) child args))
369 (defmethod container-children ((dialog dialog))
370 (container-children (dialog-vbox dialog)))
372 (defmethod (setf container-children) (children (dialog dialog))
373 (setf (container-children (dialog-vbox dialog)) children))
377 ;;; Drawing area -- no functions
387 (defbinding toggle-button-toggled () nil
388 (toggle-button toggle-button))
393 (defbinding label-select-region () nil
403 (defbinding %radio-button-get-group () pointer
404 (radio-button radio-button))
406 (defbinding %radio-button-set-group () nil
407 (radio-button radio-button)
410 (defun radio-button-add-to-group (button1 button2)
411 "Add BUTTON1 to the group which BUTTON2 belongs to."
412 (%radio-button-set-group button1 (%radio-button-get-group button2)))
415 (defmethod initialize-instance ((button radio-button)
416 &rest initargs &key group-with)
417 (declare (ignore initargs))
420 (radio-button-add-to-group item group-with)))
425 (defbinding %option-menu-set-menu () nil
426 (option-menu option-menu)
429 (defbinding %option-menu-remove-menu () nil
430 (option-menu option-menu))
432 (defun (setf option-menu-menu) (menu option-menu)
434 (%option-menu-remove-menu option-menu)
435 (%option-menu-set-menu option-menu menu))
442 (defbinding item-select () nil
445 (defbinding item-deselect () nil
448 (defbinding item-toggle () nil
455 (defun (setf menu-item-label) (label menu-item)
456 (make-instance 'accel-label
457 :label label :xalign 0.0 :yalign 0.5 :accel-widget menu-item
458 :visible t :parent menu-item)
461 (defbinding %menu-item-set-submenu () nil
462 (menu-item menu-item)
465 (defbinding %menu-item-remove-submenu () nil
466 (menu-item menu-item))
468 (defun (setf menu-item-submenu) (submenu menu-item)
470 (%menu-item-remove-submenu menu-item)
471 (%menu-item-set-submenu menu-item submenu))
474 (defbinding menu-item-select () nil
475 (menu-item menu-item))
477 (defbinding menu-item-deselect () nil
478 (menu-item menu-item))
480 (defbinding menu-item-activate () nil
481 (menu-item menu-item))
487 (defbinding %radio-menu-item-get-group () pointer
488 (radio-menu-item radio-menu-item))
490 (defbinding %radio-menu-item-set-group () nil
491 (radio-menu-item radio-menu-item)
494 (defun radio-menu-item-add-to-group (item1 item2)
495 "Add ITEM1 to the group which ITEM2 belongs to."
496 (%radio-menu-item-set-group item1 (%radio-menu-item-get-group item2)))
498 (defmethod initialize-instance ((item radio-menu-item)
499 &rest initargs &key group-with)
500 (declare (ignore initargs))
503 (radio-menu-item-add-to-group item group-with)))
509 (defbinding %window-set-wmclass () nil
511 (wmclass-name string)
512 (wmclass-class string))
514 (defun (setf window-wmclass) (wmclass window)
515 (%window-set-wmclass window (svref wmclass 0) (svref wmclass 1))
516 (values (svref wmclass 0) (svref wmclass 1)))
519 (defbinding window-wmclass () nil
521 (wmclass-name string :out)
522 (wmclass-class string :out))
524 (defbinding window-add-accel-group () nil
526 (accel-group accel-group))
528 (defbinding window-remove-accel-group () nil
530 (accel-group accel-group))
532 (defbinding window-activate-focus () int
535 (defbinding window-activate-default () int
538 (defbinding window-set-transient-for () nil
542 ;(defbinding window-set-geometry-hints)
548 (defbinding file-selection-complete () nil
549 (file-selection file-selection)
556 (defun (setf scrolled-window-scrollbar-policy) (policy window)
557 (setf (scrolled-window-hscrollbar-policy window) policy)
558 (setf (scrolled-window-vscrollbar-policy window) policy))
560 (defbinding scrolled-window-add-with-viewport () nil
561 (scrolled-window scrolled-window)
579 (defbinding (statusbar-context-id "gtk_statusbar_get_context_id")
581 (statusbar statusbar)
582 (context-description string))
584 (defbinding statusbar-push () unsigned-int
585 (statusbar statusbar)
586 (context-id unsigned-int)
589 (defbinding statusbar-pop () nil
590 (statusbar statusbar)
591 (context-id unsigned-int))
593 (defbinding statusbar-remove () nil
594 (statusbar statusbar)
595 (context-id unsigned-int)
596 (message-id unsigned-int))
602 (defbinding fixed-put () nil
608 (defbinding fixed-move () nil
618 (defbinding (notebook-insert-page "gtk_notebook_insert_page_menu")
619 (notebook position child tab-label &optional menu-label) nil
622 ((if (stringp tab-label)
623 (label-new tab-label)
625 ((if (stringp menu-label)
626 (label-new menu-label)
627 menu-label) (or null widget))
630 (defun notebook-append-page (notebook child tab-label &optional menu-label)
631 (notebook-insert-page notebook -1 child tab-label menu-label))
633 (defun notebook-prepend-page (notebook child tab-label &optional menu-label)
634 (notebook-insert-page notebook 0 child tab-label menu-label))
636 (defbinding notebook-remove-page () nil
640 ; (defun notebook-current-page-num (notebook)
641 ; (let ((page-num (notebook-current-page notebook)))
642 ; (if (= page-num -1)
646 (defbinding (notebook-nth-page-child "gtk_notebook_get_nth_page") () widget
650 (defun notebook-page-child (notebook)
651 (notebook-nth-page-child notebook (notebook-page notebook)))
653 (defbinding %notebook-page-num () int
657 (defun notebook-child-num (notebook child)
658 (let ((page-num (%notebook-page-num notebook child)))
663 (defbinding notebook-next-page () nil
666 (defbinding notebook-prev-page () nil
669 (defbinding notebook-popup-enable () nil
672 (defbinding notebook-popup-disable () nil
675 ; (defbinding (notebook-tab-label "gtk_notebook_get_tab_label")
676 ; (notebook ref) widget
677 ; (notebook notebook)
678 ; ((if (typep ref 'widget)
680 ; (notebook-nth-page-child notebook ref))
683 ; (defbinding %notebook-set-tab-label () nil
684 ; (notebook notebook)
686 ; (tab-label widget))
688 ; (defun (setf notebook-tab-label) (tab-label notebook reference)
689 ; (let ((tab-label-widget (if (stringp tab-label)
690 ; (label-new tab-label)
692 ; (%notebook-set-tab-label
694 ; (if (typep reference 'widget)
696 ; (notebook-nth-page-child notebook reference))
700 ; (defbinding (notebook-menu-label "gtk_notebook_get_menu_label")
701 ; (notebook ref) widget
702 ; (notebook notebook)
703 ; ((if (typep ref 'widget)
705 ; (notebook-nth-page-child notebook ref))
708 ; (defbinding %notebook-set-menu-label () nil
709 ; (notebook notebook)
711 ; (menu-label widget))
713 ; (defun (setf notebook-menu-label) (menu-label notebook reference)
714 ; (let ((menu-label-widget (if (stringp menu-label)
715 ; (label-new menu-label)
717 ; (%notebook-set-menu-label
719 ; (if (typep reference 'widget)
721 ; (notebook-nth-page-child notebook reference))
723 ; menu-label-widget))
725 (defbinding notebook-query-tab-label-packing (notebook ref) nil
727 ((if (typep ref 'widget)
729 (notebook-nth-page-child notebook ref))
731 (expand boolean :out)
733 (pack-type pack-type :out))
736 notebook-set-tab-label-packing (notebook ref expand fill pack-type) nil
738 ((if (typep ref 'widget)
740 (notebook-nth-page-child notebook ref))
744 (pack-type pack-type))
746 (defbinding notebook-reorder-child () nil
755 (defbinding paned-pack1 () nil
761 (defbinding paned-pack2 () nil
768 (defbinding paned-child1 () widget
770 (resize boolean :out)
771 (shrink boolean :out))
774 (defbinding paned-child2 () widget
776 (resize boolean :out)
777 (shrink boolean :out))
779 (defun (setf paned-child1) (child paned)
780 (paned-pack1 paned child nil t))
782 (defun (setf paned-child2) (child paned)
783 (paned-pack2 paned child t t))
789 (defbinding layout-put () nil
795 (defbinding layout-move () nil
801 (defbinding layout-set-size () nil
806 (defbinding layout-get-size () nil
815 (defbinding menu-shell-insert () nil
816 (menu-shell menu-shell)
817 (menu-item menu-item)
820 (defun menu-shell-append (menu-shell menu-item)
821 (menu-shell-insert menu-shell menu-item -1))
823 (defun menu-shell-prepend (menu-shell menu-item)
824 (menu-shell-insert menu-shell menu-item 0))
826 (defbinding menu-shell-deactivate () nil
827 (menu-shell menu-shell))
829 (defbinding menu-shell-select-item () nil
830 (menu-shell menu-shell)
831 (menu-item menu-item))
833 (defbinding menu-shell-deselect () nil
834 (menu-shell menu-shell))
836 (defbinding menu-shell-activate-item () nil
837 (menu-shell menu-shell)
838 (menu-item menu-item)
839 (fore-deactivate boolean))
845 ; (defbinding menu-bar-insert () nil
846 ; (menu-bar menu-bar)
850 ; (defun menu-bar-append (menu-bar menu)
851 ; (menu-bar-insert menu-bar menu -1))
853 ; (defun menu-bar-prepend (menu-bar menu)
854 ; (menu-bar-insert menu-bar menu 0))
860 ;(defun menu-popup ...)
862 (defbinding menu-reposition () nil
865 (defbinding menu-popdown () nil
868 (defbinding %menu-set-active () nil
870 (index unsigned-int))
872 (defun (setf menu-active) (menu index)
873 (%menu-set-active menu index))
875 (defbinding menu-reorder-child () nil
877 (menu-item menu-item)
883 (defbinding table-resize () nil
886 (columns unsigned-int))
888 (defbinding table-attach (table child left right top bottom
889 &key (x-options '(:expand :fill))
890 (y-options '(:expand :fill))
891 (x-padding 0) (y-padding 0)) nil
897 (bottom unsigned-int)
898 (x-options attach-options)
899 (y-options attach-options)
900 (x-padding unsigned-int)
901 (y-padding unsigned-int))
904 (defbinding %table-set-row-spacing () nil
907 (spacing unsigned-int))
909 (defbinding %table-set-row-spacings () nil
911 (spacing unsigned-int))
913 (defun (setf table-row-spacing) (spacing table &optional row)
915 (%table-set-row-spacing table row spacing)
916 (%table-set-row-spacings table spacing))
919 (defbinding %table-get-row-spacing () unsigned-int
923 (defbinding %table-get-default-row-spacing () unsigned-int
926 (defun table-row-spacing (table &optional row)
928 (%table-get-row-spacing table row)
929 (%table-get-default-row-spacing table)))
932 (defbinding %table-set-col-spacing () nil
935 (spacing unsigned-int))
937 (defbinding %table-set-col-spacings () nil
939 (spacing unsigned-int))
941 (defun (setf table-col-spacing) (spacing table &optional col)
943 (%table-set-col-spacing table col spacing)
944 (%table-set-col-spacings table spacing))
947 (defbinding %table-get-col-spacing () unsigned-int
951 (defbinding %table-get-default-col-spacing () unsigned-int
954 (defun table-col-spacing (table &optional col)
956 (%table-get-col-spacing table col)
957 (%table-get-default-col-spacing table)))
964 (defbinding toolbar-num-children () int
967 (defun %toolbar-position-num (toolbar position)
970 (:append (toolbar-num-children toolbar))
972 (assert (and (>= position 0) (< position (toolbar-num-children toolbar))))
975 (defbinding %toolbar-insert-element () widget
977 (type toolbar-child-type)
978 (widget (or null widget))
980 (tooltip-text string)
981 (tooltip-private-text string)
982 (icon (or null widget))
987 (defun toolbar-insert-element (toolbar position
988 &key tooltip-text tooltip-private-text
989 type widget icon text callback)
990 (let* ((icon-widget (typecase icon
991 ((or null widget) icon)
992 (t (pixmap-new icon))))
994 (%toolbar-insert-element
995 toolbar (or type (and widget :widget) :button)
996 widget text tooltip-text tooltip-private-text icon-widget
997 (%toolbar-position-num toolbar position))))
999 (signal-connect toolbar-child 'clicked callback))
1002 (defun toolbar-append-element (toolbar &key tooltip-text tooltip-private-text
1003 type widget icon text callback)
1004 (toolbar-insert-element
1005 toolbar :append :type type :widget widget :icon icon :text text
1006 :tooltip-text tooltip-text :tooltip-private-text tooltip-private-text
1007 :callback callback))
1009 (defun toolbar-prepend-element (toolbar &key tooltip-text tooltip-private-text
1010 type widget icon text callback)
1011 (toolbar-insert-element
1012 toolbar :prepend :type type :widget widget :icon icon :text text
1013 :tooltip-text tooltip-text :tooltip-private-text tooltip-private-text
1014 :callback callback))
1016 (defun toolbar-insert-space (toolbar position)
1017 (toolbar-insert-element toolbar position :type :space))
1019 (defun toolbar-append-space (toolbar)
1020 (toolbar-insert-space toolbar :append))
1022 (defun toolbar-prepend-space (toolbar)
1023 (toolbar-insert-space toolbar :prepend))
1025 (defun toolbar-insert-widget (toolbar widget position &key tooltip-text
1026 tooltip-private-text callback)
1027 (toolbar-insert-element
1028 toolbar position :widget widget :tooltip-text tooltip-text
1029 :tooltip-private-text tooltip-private-text :callback callback))
1031 (defun toolbar-append-widget (toolbar widget &key tooltip-text
1032 tooltip-private-text callback)
1033 (toolbar-insert-widget
1034 toolbar widget :append :tooltip-text tooltip-text
1035 :tooltip-private-text tooltip-private-text :callback callback))
1037 (defun toolbar-prepend-widget (toolbar widget &key tooltip-text
1038 tooltip-private-text callback)
1039 (toolbar-insert-widget
1040 toolbar widget :prepend :tooltip-text tooltip-text
1041 :tooltip-private-text tooltip-private-text :callback callback))
1043 (defun toolbar-insert-item (toolbar text icon position &key tooltip-text
1044 tooltip-private-text callback)
1045 (toolbar-insert-element
1046 toolbar position :text text :icon icon :callback callback
1047 :tooltip-text tooltip-text :tooltip-private-text tooltip-private-text))
1049 (defun toolbar-append-item (toolbar text icon &key tooltip-text
1050 tooltip-private-text callback)
1051 (toolbar-insert-item
1052 toolbar text icon :append :callback callback
1053 :tooltip-text tooltip-text :tooltip-private-text tooltip-private-text))
1056 (defun toolbar-prepend-item (toolbar text icon &key tooltip-text
1057 tooltip-private-text callback)
1058 (toolbar-insert-item
1059 toolbar text icon :prepend :callback callback
1060 :tooltip-text tooltip-text :tooltip-private-text tooltip-private-text))
1062 (defun toolbar-enable-tooltips (toolbar)
1063 (setf (toolbar-tooltips-p toolbar) t))
1065 (defun toolbar-disable-tooltips (toolbar)
1066 (setf (toolbar-tooltips-p toolbar) nil))
1077 (defbinding editable-select-region (editable &optional (start 0) end) nil
1082 (defbinding editable-insert-text
1083 (editable text &optional (position 0)) nil
1087 ((or position -1) int :in-out))
1089 (defun editable-append-text (editable text)
1090 (editable-insert-text editable text nil))
1092 (defun editable-prepend-text (editable text)
1093 (editable-insert-text editable text 0))
1095 (defbinding editable-delete-text (editable &optional (start 0) end) nil
1100 (defbinding (editable-text "gtk_editable_get_chars")
1101 (editable &optional (start 0) end) string
1106 (defun (setf editable-text) (text editable)
1108 (editable-delete-text
1110 (editable-insert-text editable text))
1111 (editable-delete-text editable))
1114 (defbinding editable-cut-clipboard () nil
1115 (editable editable))
1117 (defbinding editable-copy-clipboard () nil
1118 (editable editable))
1120 (defbinding editable-paste-clipboard () nil
1121 (editable editable))
1123 ; (defbinding editable-claim-selection () nil
1124 ; (editable editable)
1126 ; (time unsigned-int))
1128 (defbinding editable-delete-selection () nil
1129 (editable editable))
1131 ; (defbinding editable-changed () nil
1132 ; (editable editable))
1138 (defun spin-button-value-as-int (spin-button)
1139 (round (spin-button-value spin-button)))
1141 (defbinding spin-button-spin () nil
1142 (spin-button spin-button)
1143 (direction spin-type)
1144 (increment single-float))
1146 (defbinding spin-button-update () nil
1147 (spin-button spin-button))
1153 (defbinding ruler-set-range () nil
1155 (lower single-float)
1156 (upper single-float)
1157 (position single-float)
1158 (max-size single-float))
1160 (defbinding ruler-draw-ticks () nil
1163 (defbinding ruler-draw-pos () nil
1170 (defbinding range-draw-background () nil
1173 (defbinding range-clear-background () nil
1176 (defbinding range-draw-trough () nil
1179 (defbinding range-draw-slider () nil
1182 (defbinding range-draw-step-forw () nil
1185 (defbinding range-slider-update () nil
1188 (defbinding range-trough-click () int
1192 (jump-perc single-float :out))
1194 (defbinding range-default-hslider-update () nil
1197 (defbinding range-default-vslider-update () nil
1200 (defbinding range-default-htrough-click () int
1204 (jump-perc single-float :out))
1206 (defbinding range-default-vtrough-click () int
1210 (jump-perc single-float :out))
1212 (defbinding range-default-hmotion () int
1217 (defbinding range-default-vmotion () int
1226 ; (defbinding scale-draw-value () nil
1233 (defbinding progress-bar-pulse () nil
1234 (progress-bar progress-bar))
1242 (defbinding tooltips-enable () nil
1243 (tooltips tooltips))
1245 (defbinding tooltips-disable () nil
1246 (tooltips tooltips))
1248 (defun (setf tooltips-enabled-p) (enable tooltips)
1250 (tooltips-enable tooltips)
1251 (tooltips-disable tooltips)))
1253 (defbinding tooltips-set-tip () nil
1257 (tip-private string))
1259 (defbinding tooltips-force-window () nil
1260 (tooltips tooltips))
1266 (defbinding rc-add-default-file (filename) nil
1267 ((namestring (truename filename)) string))
1269 (defbinding rc-parse (filename) nil
1270 ((namestring (truename filename)) string))
1272 (defbinding rc-parse-string () nil
1275 (defbinding rc-reparse-all () nil)
1277 (defbinding rc-get-style () style
1282 ;;; Accelerator Groups
1284 (defbinding accel-group-get-default () accel-group)
1286 (deftype-method alien-ref accel-group (type-spec)
1287 (declare (ignore type-spec))
1290 (deftype-method alien-unref accel-group (type-spec)
1291 (declare (ignore type-spec))
1292 '%accel-group-unref)
1294 (defbinding %accel-group-ref () accel-group
1295 (accel-group (or accel-group pointer)))
1297 (defbinding %accel-group-unref () nil
1298 (accel-group (or accel-group pointer)))
1300 (defbinding accel-group-activate (accel-group key modifiers) boolean
1301 (accel-group accel-group)
1302 ((gdk:keyval-from-name key) unsigned-int)
1303 (modifiers gdk:modifier-type))
1305 (defbinding accel-groups-activate (object key modifiers) boolean
1307 ((gdk:keyval-from-name key) unsigned-int)
1308 (modifiers gdk:modifier-type))
1310 (defbinding accel-group-attach () nil
1311 (accel-group accel-group)
1314 (defbinding accel-group-detach () nil
1315 (accel-group accel-group)
1318 (defbinding accel-group-lock () nil
1319 (accel-group accel-group))
1321 (defbinding accel-group-unlock () nil
1322 (accel-group accel-group))
1325 ;;; Accelerator Groups Entries
1327 (defbinding accel-group-get-entry (accel-group key modifiers) accel-entry
1328 (accel-group accel-group)
1329 ((gdk:keyval-from-name key) unsigned-int)
1330 (modifiers gdk:modifier-type))
1332 (defbinding accel-group-lock-entry (accel-group key modifiers) nil
1333 (accel-group accel-group)
1334 ((gdk:keyval-from-name key) unsigned-int)
1335 (modifiers gdk:modifier-type))
1337 (defbinding accel-group-unlock-entry (accel-group key modifiers) nil
1338 (accel-group accel-group)
1339 ((gdk:keyval-from-name key) unsigned-int)
1340 (modifiers gdk:modifier-type))
1342 (defbinding accel-group-add
1343 (accel-group key modifiers flags object signal) nil
1344 (accel-group accel-group)
1345 ((gdk:keyval-from-name key) unsigned-int)
1346 (modifiers gdk:modifier-type)
1349 ((name-to-string signal) string))
1351 (defbinding accel-group-add (accel-group key modifiers object) nil
1352 (accel-group accel-group)
1353 ((gdk:keyval-from-name key) unsigned-int)
1354 (modifiers gdk:modifier-type)
1358 ;;; Accelerator Signals
1360 (defbinding accel-group-handle-add
1361 (object signal-id accel-group key modifiers flags) nil
1363 (signal-id unsigned-int)
1364 (accel-group accel-group)
1365 ((gdk:keyval-from-name key) unsigned-int)
1366 (modifiers gdk:modifier-type)
1367 (flags accel-flags))
1369 (defbinding accel-group-handle-remove
1370 (object accel-group key modifiers) nil
1372 (accel-group accel-group)
1373 ((gdk:keyval-from-name key) unsigned-int)
1374 (modifiers gdk:modifier-type))