3 (define-g-enum "GdkGrabStatus" grab-status
() :success
:already-grabbed
:invalid-time
:not-viewable
:frozen
)
5 (defcenum crossing-mode
:normal
:grab
:ungrab
:gtk-grab
:gtk-ungrab
:state-changed
)
6 (export 'crossing-mode
)
8 (defcenum notify-type
(:ancestor
0) :virtual
:inferior
:nonlinear
:nonlinear-virtual
:unknown
)
11 (define-g-enum "GdkFillRule"
13 (:export t
:type-initializer
"gdk_fill_rule_get_type")
17 (define-g-enum "GdkOverlapType"
19 (:export t
:type-initializer
"gdk_overlap_type_get_type")
24 (define-g-flags "GdkGCValuesMask"
26 (:export t
:type-initializer
"gdk_gc_values_mask_get_type")
46 (define-g-enum "GdkFunction"
48 (:export t
:type-initializer
"gdk_function_get_type")
66 (define-g-enum "GdkFill"
68 (:export t
:type-initializer
"gdk_fill_get_type")
74 (define-g-enum "GdkSubwindowMode"
76 (:export t
:type-initializer
"gdk_subwindow_mode_get_type")
78 (:include-inferiors
1))
80 (define-g-enum "GdkLineStyle"
82 (:export t
:type-initializer
"gdk_line_style_get_type")
87 (define-g-enum "GdkCapStyle"
89 (:export t
:type-initializer
"gdk_cap_style_get_type")
95 (define-g-enum "GdkJoinStyle"
97 (:export t
:type-initializer
"gdk_join_style_get_type")
102 (define-g-enum "GdkRgbDither"
104 (:export t
:type-initializer
"gdk_rgb_dither_get_type")
109 (define-g-enum "GdkVisualType"
111 (:export t
:type-initializer
"gdk_visual_type_get_type")
119 (define-g-enum "GdkByteOrder"
121 (:export t
:type-initializer
"gdk_byte_order_get_type")
125 (define-g-enum "GdkCursorType"
127 (:export t
:type-initializer
"gdk_cursor_type_get_type")
130 (:based-arrow-down
4)
134 (:bottom-left-corner
12)
135 (:bottom-right-corner
14)
182 (:sb-h-double-arrow
108)
184 (:sb-right-arrow
112)
186 (:sb-v-double-arrow
116)
194 (:top-left-arrow
132)
195 (:top-left-corner
134)
196 (:top-right-corner
136)
207 (:cursor-is-pixmap -
1))
209 (define-g-flags "GdkWindowState"
211 (:export t
:type-initializer
"gdk_window_state_get_type")
220 ;gdk_display_get_screen
222 (define-g-enum "GdkEventType" event-type
()
223 (:nothing -
1) (:delete
0)
224 (:destroy
1) (:expose
2) (:motion-notify
3)
225 (:button-press
4) (:2button-press
5) (:3button-press
6)
226 (:button-release
7) (:key-press
8) (:key-release
9)
227 (:enter-notify
10) (:leave-notify
11) (:focus-change
12)
228 (:configure
13) (:map
14) (:unmap
15) (:property-notify
16)
229 (:selection-clear
17) (:selection-request
18)
230 (:selection-notify
19) (:proximity-in
20)
231 (:proximity-out
21) (:drag-enter
22) (:drag-leave
23)
232 (:drag-motion
24) (:drag-status
25) (:drop-start
26)
233 (:drop-finished
27) (:client-event
28)
234 (:visibility-notify
29) (:no-expose
30) (:scroll
31)
235 (:window-state
32) (:setting
33) (:owner-change
34)
236 (:grab-broken
35) (:damage
36))
238 (define-g-enum "GdkExtensionMode" extension-mode
(:export t
:type-initializer
"gdk_extension_mode_get_type")
239 (:none
0) (:all
1) (:cursor
2))
241 (define-g-enum "GdkWindowTypeHint" gdk-window-type-hint
(:export t
:type-initializer
"gdk_window_type_hint_get_type")
242 (:normal
0) (:dialog
1) (:menu
2) (:toolbar
3)
243 (:splashscreen
4) (:utility
5) (:dock
6) (:desktop
7)
244 (:dropdown-menu
8) (:popup-menu
9) (:tooltip
10)
245 (:notification
11) (:combo
12) (:dnd
13))
247 (define-g-flags "GdkModifierType" modifier-type
()
248 (:shift-mask
1) (:lock-mask
2) (:control-mask
4)
249 (:mod1-mask
8) (:mod2-mask
16) (:mod3-mask
32)
250 (:mod4-mask
64) (:mod5-mask
128)
251 (:button1-mask
256) (:button2-mask
512)
252 (:button3-mask
1024) (:button4-mask
2048)
253 (:button5-mask
4096) (:super-mask
67108864)
254 (:hyper-mask
134217728) (:meta-mask
268435456)
255 (:release-mask
1073741824)
256 (:modifier-mask
1543512063))
258 (define-g-enum "GdkScrollDirection" scroll-direction
()
260 (:left
2) (:right
3))
262 (define-g-enum "GdkVisibilityState" visibility-state
()
264 (:partial
1) (:fully-obscured
2))
266 (define-g-enum "GdkPropertyState" property-state
()
269 (define-g-flags "GdkWindowState" window-state
()
271 (:iconified
2) (:maximized
4) (:sticky
8) (:fullscreen
16)
272 (:above
32) (:below
64))
274 (define-g-enum "GdkSettingAction" setting-action
()
275 (:new
0) (:changed
1)
278 (define-g-enum "GdkOwnerChange" owner-change
()
280 (:destroy
1) (:close
2))
282 (define-g-flags "GdkEventMask" event-mask
()
284 (:pointer-motion-mask
4) (:pointer-motion-hint-mask
8)
285 (:button-motion-mask
16) (:button1-motion-mask
32)
286 (:button2-motion-mask
64) (:button3-motion-mask
128)
287 (:button-press-mask
256) (:button-release-mask
512)
288 (:key-press-mask
1024) (:key-release-mask
2048)
289 (:enter-notify-mask
4096) (:leave-notify-mask
8192)
290 (:focus-change-mask
16384) (:structure-mask
32768)
291 (:property-change-mask
65536)
292 (:visibility-notify-mask
131072)
293 (:proximity-in-mask
262144) (:proximity-out-mask
524288)
294 (:substructure-mask
1048576) (:scroll-mask
2097152)
295 (:all-events-mask
4194302))
297 (define-g-enum "GdkFontType" font-type
() :font
:fontset
)
299 (define-g-enum "GdkGravity" gravity
()
311 (define-g-enum "GdkWindowType"
313 (:export t
:type-initializer
"gdk_window_type_get_type")
322 (define-g-enum "GdkWindowClass"
324 (:export t
:type-initializer
"gdk_window_class_get_type")
328 (define-g-flags "GdkWindowHints"
330 (:export t
:type-initializer
"gdk_window_hints_get_type")
341 (define-g-enum "GdkWindowEdge"
343 (:export t
:type-initializer
"gdk_window_edge_get_type")
353 (define-g-flags "GdkWindowAttributesType"
354 gdk-window-attributes-type
355 (:export t
:type-initializer
"gdk_window_attributes_type_get_type")
366 (define-g-enum "GdkFilterReturn"
368 (:export t
:type-initializer
"gdk_filter_return_get_type")
373 (define-g-flags "GdkWMDecoration"
375 (:export t
:type-initializer
"gdk_wm_decoration_get_type")
384 (define-g-flags "GdkWMFunction"
386 (:export t
:type-initializer
"gdk_wm_function_get_type")
394 (define-g-enum "GdkCursorType" cursor-type
(:export t
:type-initializer
"gdk_cursor_type_get_type")
395 (:x-cursor
0) (:arrow
2) (:based-arrow-down
4)
396 (:based-arrow-up
6) (:boat
8) (:bogosity
10)
397 (:bottom-left-corner
12) (:bottom-right-corner
14)
398 (:bottom-side
16) (:bottom-tee
18) (:box-spiral
20)
399 (:center-ptr
22) (:circle
24) (:clock
26)
400 (:coffee-mug
28) (:cross
30) (:cross-reverse
32)
401 (:crosshair
34) (:diamond-cross
36) (:dot
38)
402 (:dotbox
40) (:double-arrow
42) (:draft-large
44)
403 (:draft-small
46) (:draped-box
48) (:exchange
50)
404 (:fleur
52) (:gobbler
54) (:gumby
56) (:hand1
58)
405 (:hand2
60) (:heart
62) (:icon
64) (:iron-cross
66)
406 (:left-ptr
68) (:left-side
70) (:left-tee
72)
407 (:leftbutton
74) (:ll-angle
76) (:lr-angle
78)
408 (:man
80) (:middlebutton
82) (:mouse
84)
409 (:pencil
86) (:pirate
88) (:plus
90)
410 (:question-arrow
92) (:right-ptr
94)
411 (:right-side
96) (:right-tee
98) (:rightbutton
100)
412 (:rtl-logo
102) (:sailboat
104)
413 (:sb-down-arrow
106) (:sb-h-double-arrow
108)
414 (:sb-left-arrow
110) (:sb-right-arrow
112)
415 (:sb-up-arrow
114) (:sb-v-double-arrow
116)
416 (:shuttle
118) (:sizing
120) (:spider
122)
417 (:spraycan
124) (:star
126) (:target
128)
418 (:tcross
130) (:top-left-arrow
132)
419 (:top-left-corner
134) (:top-right-corner
136)
420 (:top-side
138) (:top-tee
140) (:trek
142)
421 (:ul-angle
144) (:umbrella
146) (:ur-angle
148)
422 (:watch
150) (:xterm
152) (:last-cursor
153)
423 (:blank-cursor -
2) (:cursor-is-pixmap -
1))
425 (define-g-enum "GdkImageType"
427 (:export t
:type-initializer
"gdk_image_type_get_type")
432 (define-g-enum "GdkPixbufAlphaMode"
434 (:export t
:type-initializer
"gdk_pixbuf_alpha_mode_get_type")
438 (define-g-enum "GdkColorspace" colorspace
()
441 (define-g-enum "GdkAxisUse"
443 (:export t
:type-initializer
"gdk_axis_use_get_type")
453 (define-g-enum "GdkDragProtocol"
455 (:export t
:type-initializer
"gdk_drag_protocol_get_type")
464 (define-g-flags "GdkDragAction"
466 (:export t
:type-initializer
"gdk_drag_action_get_type")
474 (define-g-enum "GdkInputSource"
476 (:export t
:type-initializer
"gdk_input_source_get_type")
482 (define-g-enum "GdkInputMode"
484 (:export t
:type-initializer
"gdk_input_mode_get_type")
489 (define-g-enum "GdkExtensionMode"
491 (:export t
:type-initializer
"gdk_extension_mode_get_type")
496 (export 'cursor-type
)
498 (define-g-boxed-cstruct geometry nil
499 (min-width :int
:initform
0)
500 (min-height :int
:initform
0)
501 (max-width :int
:initform
0)
502 (max-height :int
:initform
0)
503 (base-width :int
:initform
0)
504 (base-height :int
:initform
0)
505 (width-increment :int
:initform
0)
506 (height-increment :int
:initform
0)
507 (min-aspect :double
:initform
0.0d0
)
508 (max-aspect :double
:initform
0.0d0
)
509 (gravity gravity
:initform
:north-west
))
511 (export (boxed-related-symbols 'geometry
))
513 (glib:at-init
() (foreign-funcall-pointer (foreign-symbol-pointer "gdk_cursor_get_type") () :int
))
515 (define-g-boxed-opaque cursor
"GdkCursor" :alloc
(error "GdkCursor can not be created from Lisp side"))
517 (export (boxed-related-symbols 'cursor
))
519 (defctype gdk-atom
:pointer
)
521 (define-foreign-type gdk-atom-as-string-type
()
523 (:actual-type
:pointer
)
524 (:simple-parser gdk-atom-as-string
))
526 (defmethod translate-from-foreign (value (type gdk-atom-as-string-type
))
527 (gdk-atom-name value
))
529 (defmethod translate-to-foreign (value (type gdk-atom-as-string-type
))
530 (gdk-atom-intern value nil
))
532 (defcfun gdk-region-new
:pointer
)
534 (define-g-boxed-opaque region nil
:alloc
(gdk-region-new))
536 (export (boxed-related-symbols 'region
))
538 (define-g-boxed-cstruct point nil
540 (y :int
:initform
0))
542 (export (boxed-related-symbols 'point
))
544 (define-g-boxed-cstruct span nil
547 (width :int
:initform
0))
549 (export (boxed-related-symbols 'span
))
551 (define-g-boxed-cstruct segment nil
552 (x1 :int
:initform
0)
553 (y1 :int
:initform
0)
554 (x2 :int
:initform
0)
555 (y2 :int
:initform
0))
557 (export (boxed-related-symbols 'segment
))
559 (define-g-boxed-cstruct trapezoid nil
560 (y1 :double
:initform
0d0
)
561 (x11 :double
:initform
0d0
)
562 (x21 :double
:initform
0d0
)
563 (y2 :double
:initform
0d0
)
564 (x12 :double
:initform
0d0
)
565 (x22 :double
:initform
0d0
))
567 (export (boxed-related-symbols 'trapezoid
))
569 (define-g-boxed-opaque font
"GdkFont"
570 :alloc
(error "GDK:FONT objects may not be allocated directly"))
572 (export (boxed-related-symbols 'font
))
574 (define-g-boxed-cstruct color
"GdkColor"
575 (pixel :uint32
:initform
0)
576 (red :uint16
:initform
0)
577 (green :uint16
:initform
0)
578 (blue :uint16
:initform
0))
580 (export (boxed-related-symbols 'color
))
582 (define-g-object-class "GdkDrawable" drawable
(:type-initializer
"gdk_drawable_get_type")
583 ((:cffi display drawable-display
(g-object display
)
584 "gdk_drawable_get_display" nil
)
585 (:cffi screen drawable-screen
(g-object screen
)
586 "gdk_drawable_get_screen" nil
)
587 (:cffi visual drawable-visual
(g-object visual
)
588 "gdk_drawable_get_visual" nil
)
589 (:cffi colormap drawable-colormap
(g-object colormap
)
590 "gdk_drawable_get_colormap" "gdk_drawable_set_colormap")
591 (:cffi depth drawable-depth
:int
592 "gdk_drawable_get_depth" nil
)
593 (:cffi clip-region drawable-clip-region
(g-boxed-foreign region
:return
)
594 "gdk_drawable_get_clip_region" nil
)
595 (:cffi visible-region drawable-visible-region
(g-boxed-foreign region
:return
)
596 "gdk_drawable_get_visible_region" nil
)))
598 (define-g-object-class "GdkWindow" gdk-window
(:superclass drawable
)
600 (cursor gdk-window-cursor
"cursor"
603 (:cffi cursor gdk-window-cursor
(g-boxed-foreign cursor
:return
)
604 "gdk_window_get_cursor" "gdk_window_set_cursor")
605 (:cffi window-type gdk-window-window-type gdk-window-type
606 "gdk_window_get_window_type" nil
)
607 (:cffi is-destroyed gdk-window-is-destroyed
:boolean
608 "gdk_window_is_destroyed" nil
)
609 (:cffi is-visible gdk-window-is-visible
:boolean
610 "gdk_window_is_visible" nil
)
611 (:cffi is-viewable gdk-window-is-viewable
:boolean
612 "gdk_window_is_viewable" nil
)
613 (:cffi state gdk-window-state gdk-window-state
614 "gdk_window_get_state" nil
)
615 (:cffi keep-above gdk-window-keep-above
:boolean
616 nil
"gdk_window_set_keep_above")
617 (:cffi keep-below gdk-window-keep-below
:boolean
618 nil
"gdk_window_set_keep_below" )
619 (:cffi opacity gdk-window-opacity
:double
620 nil
"gdk_window_set_opacity")
621 (:cffi composited gdk-window-composited
:boolean
622 nil
"gdk_window_set_composited")
623 (:cffi user-data gdk-window-user-data
:pointer
624 "gdk_window_get_user_data" "gdk_window_set_user_data")
625 (:cffi override-redirect gdk-window-override-redirect
:boolean
626 nil
"gdk_window_set_override_redirect")
627 (:cffi accept-focus gdk-window-accept-focus
:boolean
628 nil
"gdk_window_set_accept_focus")
629 (:cffi focus-on-map gdk-window-focus-on-map
:boolean
630 nil
"gdk_window_set_focus_on_map")
631 (:cffi title gdk-window-title
:string
632 nil
"gdk_window_set_title")
633 (:cffi background gdk-window-background
(g-boxed-foreign color
)
634 nil
"gdk_window_set_background")
635 (:cffi icon-list gdk-window-icon-list
(glib:glist
(g-object pixbuf
))
636 nil
"gdk_window_set_icon_list")
637 (:cffi modal-hint gdk-window-modal-hint
:boolean
638 nil
"gdk_window_set_modal_hint")
639 (:cffi type-hint gdk-window-type-hint gdk-window-type-hint
640 "gdk_window_get_type_hint" "gdk_window_set_type_hint")
641 (:cffi skip-taskbar-hint gdk-window-skip-taskbar-hint
:boolean
642 nil
"gdk_window_set_skip_taskbar_hint")
643 (:cffi skip-pager-hint gdk-window-skip-pager-hint
:boolean
644 nil
"gdk_window_set_skip_pager_hint")
645 (:cffi urgency-hint gdk-window-urgency-hint
:boolean
646 nil
"gdk_window_set_urgency_hint")
647 (:cffi parent gdk-window-parent
(g-object gdk-window
)
648 "gdk_window_get_parent" nil
)
649 (:cffi toplevel gdk-window-get-toplevel
(g-object gdk-window
)
650 "gdk_window_get_toplevel" nil
)
651 (:cffi children gdk-window-children
(glib:glist
(g-object gdk-window
) :free-from-foreign nil
)
652 "gdk_window_peek_children" nil
)
653 (:cffi events gdk-window-events event-mask
654 "gdk_window_get_events" "gdk_window_set_events")
655 (:cffi icon-name gdk-window-icon-name
:string
656 nil
"gdk_window_set_icon_name")
657 (:cffi transient-for gdk-window-transient-for
(g-object gdk-window
)
658 nil
"gdk_window_set_transient_for")
659 (:cffi role gdk-window-role
:string
660 nil
"gdk_window_set_role")
661 (:cffi startup-id gdk-window-startup-id
:string
662 nil
"gdk_window_set_startup_id")
663 (:cffi group gdk-window-group
(g-object gdk-window
)
664 "gdk_window_get_group" "gdk_window_set_group")
665 (:cffi decorations gdk-window-decorations gdk-w-m-decoration
666 gdk-window-get-decorations
"gdk_window_set_decorations")
667 (:cffi functions gdk-window-functions gdk-w-m-function
668 nil
"gdk_window_set_functions")))
671 ;;;FIXME: Check correct type
673 (defctype native-window
:pointer
)
675 (defctype native-window
:uint32
)
677 (define-foreign-type fixed-array
()
678 ((element-type :reader fixed-array-element-type
:initarg
:element-type
:initform
(error "Element type must be specified"))
679 (array-size :reader fixed-array-array-size
:initarg
:array-size
:initform
(error "Array size must be specified")))
680 (:actual-type
:pointer
)
682 "CFFI foreign type for an array of a fixed length. Slot @code{element-type}@see-slot{fixed-array-element-type} specifies the type of elements and slot @code{array-size}@see-slot{fixed-array-array-size} specifies the size of array (in elements)."))
684 (define-parse-method fixed-array
(element-type array-size
)
685 (make-instance 'fixed-array
:element-type element-type
:array-size array-size
))
687 (defmethod translate-from-foreign (ptr (type fixed-array
))
688 (when (not (null-pointer-p ptr
))
689 (let ((result (make-array (fixed-array-array-size type
)))
690 (el-type (fixed-array-element-type type
)))
692 for i from
0 below
(fixed-array-array-size type
)
693 do
(setf (aref result i
) (mem-aref ptr el-type i
)))
696 (define-g-boxed-cstruct rectangle
"GdkRectangle"
699 (width :int
:initform
0)
700 (height :int
:initform
0))
702 (export (boxed-related-symbols 'rectangle
))
704 (define-g-boxed-variant-cstruct event
"GdkEvent"
706 (window (g-object gdk-window
))
707 (send-event (:boolean
:int8
))
709 ((:key-press
:key-release
) event-key
711 (state modifier-type
)
714 (string (:string
:free-from-foreign nil
715 :free-to-foreign nil
))
716 (hardware-keycode :uint16
)
722 :button-release
) event-button
726 (axes (fixed-array :double
2))
729 (device (g-object device
))
732 ((:scroll
) event-scroll
736 (state modifier-type
)
737 (direction scroll-direction
)
738 (device (g-object device
))
741 ((:motion-notify
) event-motion
745 (axes (fixed-array :double
2))
746 (state modifier-type
)
748 (device (g-object device
))
751 ((:expose
) event-expose
752 (area rectangle
:inline t
)
755 ((:visibility-notify
) event-visibility
756 (state visibility-state
))
757 ((:enter-notify
:leave-notify
) event-crossing
758 (sub-window (g-object gdk-window
))
768 ((:focus-change
) event-focus
770 ((:configure
) event-configure
775 ((:property-notify
) event-property
778 (state property-state
))
781 :selection-request
) event-selection
786 (requestor native-window
))
792 :drop-finished
) event-dnd
793 (drag-context (g-object drag-context
))
798 :proximity-out
) event-proximity
800 (device (g-object device
)))
801 ((:client-event
) event-client
802 (message-time gdk-atom
)
803 (data-format :ushort
)
804 (:variant data-format
806 (data :uchar
:count
20))
808 (data :ushort
:count
10))
810 (data :ulong
:count
5))))
811 ((:no-expose
) event-no-expose
)
812 ((:window-state
) event-window-state
813 (changed-mask window-state
)
814 (new-window-state window-state
))
815 ((:setting
) event-setting
816 (action setting-action
)
817 (name (:string
:free-from-foreign nil
:free-to-foreign nil
)))
818 ((:owner-change
) event-owner-change
819 (owner native-window
)
820 (reason owner-change
)
823 (selection-time :uint32
))
824 ((:grab-broken
) event-grab-broken
827 (grab-window (g-object gdk-window
)))))
829 (export (boxed-related-symbols 'event
))
831 (define-g-object-class "GdkDragContext" drag-context
(:type-initializer
"gdk_drag_context_get_type")
832 ((:cffi protocol drag-context-protocol gdk-drag-protocol
833 %gdk-drag-context-get-protocol nil
)
834 (:cffi is-source drag-context-is-source
:boolean
835 %gdk-drag-context-get-is-source nil
)
836 (:cffi source-window drag-context-source-window
(g-object gdk-window
)
837 %gdk-drag-context-get-source-window nil
)
838 (:cffi dest-window drag-context-dest-window
(g-object gdk-window
)
839 %gdk-drag-context-get-dest-window nil
)
840 (:cffi targets drag-context-targets
(glib:glist gdk-atom-as-string
:free-from-foreign nil
)
841 %gdk-drag-context-get-targets nil
)
842 (:cffi actions drag-context-actions gdk-drag-action
843 %gdk-drag-context-get-actions nil
)
844 (:cffi suggested-action drag-context-suggested-action gdk-drag-action
845 %gdk-drag-context-get-suggested-action nil
)
846 (:cffi action drag-context-action gdk-drag-action
847 %gdk-drag-context-get-action nil
)
848 (:cffi start-time drag-context-start-time
:uint32
849 %gdk-drag-context-get-start-time nil
)))
851 (define-g-object-class "GdkPixbuf" pixbuf
(:type-initializer
"gdk_pixbuf_get_type")
852 ((colorspace pixbuf-colorspace
"colorspace" "GdkColorspace" t nil
)
853 (n-channels pixbuf-n-channels
"n-channels" "gint" t nil
)
854 (has-alpha pixbuf-has-alpha
"has-alpha" "gboolean" t nil
)
855 (bits-per-sample pixbuf-bits-per-sample
"bits-per-sample" "gint" t nil
)
856 (width pixbuf-width
"width" "gint" t nil
)
857 (height pixbuf-height
"height" "gint" t nil
)
858 (rowstride pixbuf-rowstride
"rowstride" "gint" t nil
)
859 (pixels pixbuf-pixels
"pixels" "gpointer" t nil
)))
861 (define-g-object-class "GdkPixbufAnimation" pixbuf-animation
(:type-initializer
"gdk_pixbuf_animation_get_type")
864 (define-g-object-class "GdkImage" gdk-image
865 (:superclass g-object
:export t
:interfaces
866 nil
:type-initializer
867 "gdk_image_get_type")
868 ((:cffi colormap gdk-image-colormap
(g-object gdk-colormap
)
869 "gdk_image_get_colormap" "gdk_image_set_colormap")))
871 (define-g-object-class "GdkDisplay" display
(:type-initializer
"gdk_display_get_type")
872 ((:cffi name display-name
(glib:g-string
:free-from-foreign nil
)
873 "gdk_display_get_name" nil
)
874 (:cffi n-screens display-n-screens
:int
875 "gdk_display_get_n_screens" nil
)
876 (:cffi default-screen display-default-screen
(g-object screen
)
877 "gdk_display_get_default_screen" nil
)
878 (:cffi devices display-devices
(glib:glist g-object
:free-from-foreign nil
)
879 "gdk_display_list_devices" nil
)
880 (:cffi supports-cursor-color display-supports-cursor-color
:boolean
881 "gdk_display_supports_cursor_color" nil
)
882 (:cffi supports-cursor-alpha display-supports-color-alpha
:boolean
883 "gdk_display_supports_cursor_alpha" nil
)
884 (:cffi default-cursor-size display-default-cursor-size
:uint
885 "gdk_display_get_default_cursor_size" nil
)
886 (:cffi default-group display-default-group
(g-object gdk-window
)
887 "gdk_display_get_default_group" nil
)
888 (:cffi supports-selection-notification display-supports-selection-notification
:boolean
889 "gdk_display_supports_selection_notification" nil
)
890 (:cffi supports-clipboard-persistence display-supports-clipboard-persistence
:boolean
891 "gdk_display_supports_clipboard_persistence" nil
)
892 (:cffi supports-shapes display-supports-shapes
:boolean
893 "gdk_display_supports_shapes" nil
)
894 (:cffi supports-input-shapes display-supports-input-shapes
:boolean
895 "gdk_display_supports_input_shapes" nil
)
896 (:cffi supports-composite display-supports-composite
:boolean
897 "gdk_display_supports_composite" nil
)
898 (:cffi core-pointer display-core-pointer g-object
899 "gdk_display_get_core_pointer" nil
)))
901 (define-g-object-class "GdkDisplayManager" display-manager
(:type-initializer
"gdk_display_manager_get_type")
902 ((default-display display-manager-default-display
"default-display" "GdkDisplay" t t
)
903 (:cffi displays display-manager-displays
(glib:gslist
(g-object display
) :free-from-foreign t
)
904 "gdk_display_manager_list_displays" nil
)))
906 (define-g-object-class "GdkVisual" visual
(:type-initializer
"gdk_visual_get_type")
907 ((:cffi screen visual-screen
(g-object screen
) "gdk_visual_get_screen" nil
)
908 (:cffi visual-type visual-visual-type visual-type gdk-visual-get-visual-type nil
)
909 (:cffi depth visual-depth
:int gdk-visual-get-depth nil
)
910 (:cffi byte-order visual-byte-order byte-order gdk-visual-get-byte-order nil
)
911 (:cffi colormap-size visual-colormap-size
:int gdk-visual-get-colormap-size nil
)
912 (:cffi bits-per-rgb visual-bits-per-rgb
:int gdk-visual-get-bits-per-rgb nil
)
913 (:cffi red-mask visual-red-mask
:uint32 gdk-visual-get-red-mask nil
)
914 (:cffi red-shift visual-red-shift
:int gdk-visual-get-red-shift nil
)
915 (:cffi red-prec visual-red-prec
:int gdk-visual-get-red-prec nil
)
916 (:cffi green-mask visual-green-mask
:uint32 gdk-visual-get-green-mask nil
)
917 (:cffi green-shift visual-green-shift
:int gdk-visual-get-green-shift nil
)
918 (:cffi green-prec visual-green-prec
:int gdk-visual-get-green-prec nil
)
919 (:cffi blue-mask visual-blue-mask
:uint32 gdk-visual-get-blue-mask nil
)
920 (:cffi blue-shift visual-blue-shift
:int gdk-visual-get-blue-shift nil
)
921 (:cffi blue-prec visual-blue-prec
:int gdk-visual-get-blue-prec nil
)))
923 (define-g-object-class "GdkColormap" gdk-colormap
924 (:superclass g-object
:export t
:interfaces
925 nil
:type-initializer
926 "gdk_colormap_get_type")
927 ((:cffi visual colormap-visual
(g-object visual
)
928 "gdk_colormap_get_visual" nil
)
929 (:cffi screen colormap-screen
(g-object screen
)
930 "gdk_colormap_get_screeen" nil
)))
932 (define-g-object-class "GdkScreen" screen
(:type-initializer
"gdk_screen_get_type")
933 ((font-options screen-font-options
"font-options" "gpointer" t t
)
934 (resolution screen-resolution
"resolution" "gdouble" t t
)
935 (:cffi default-colormap screen-default-colormap
(g-object colormap
)
936 "gdk_screen_get_default_colormap" "gdk_screen_set_default_colormap")
937 (:cffi system-colormap screen-system-colormap
(g-object colormap
)
938 "gdk_screen_get_system_colormap" nil
)
939 (:cffi system-visual screen-system-visual
(g-object visual
)
940 "gdk_screen_get_system_visual" nil
)
941 (:cffi rgb-colormap screen-rgb-colormap
(g-object colormap
)
942 "gdk_screen_get_rgb_colormap" nil
)
943 (:cffi rgb-visual screen-visual
(g-object visual
)
944 "gdk_screen_get_rgb_visual" nil
)
945 (:cffi rgba-colormap screen-rgba-colormap
(g-object colormap
)
946 "gdk_screen_get_rgba_colormap" nil
)
947 (:cffi rgba-visual screen-rgba-visual
(g-object visual
)
948 "gdk_screen_get_rgba_visual" nil
)
949 (:cffi composited-p screen-composited-p
:boolean
950 "gdk_screen_is_composited" nil
)
951 (:cffi root-window screen-root-window
(g-object gdk-window
)
952 "gdk_screen_get_root_window" nil
)
953 (:cffi display screen-display
(g-object display
)
954 "gdk_screen_get_display" nil
)
955 (:cffi number screen-number
:int
956 "gdk_screen_get_number" nil
)
957 (:cffi width screen-widget
:int
958 "gdk_screen_get_width" nil
)
959 (:cffi height screen-height
:int
960 "gdk_screen_get_height" nil
)
961 (:cffi width-mm screen-width-mm
:int
962 "gdk_screen_get_width_mm" nil
)
963 (:cffi height-mm screen-height-mm
:int
964 "gdk_screen_get_height_mm" nil
)
965 (:cffi visuals screen-visuals
(glib:glist
(g-object visual
) :free-from-foreign t
)
966 "gdk_screen_list_visuals" nil
)
967 (:cffi toplevel-windows screen-toplevel-windows
(glib:glist
(g-object gdk-window
) :free-from-foreign t
)
968 "gdk_screen_get_toplevel_windows" nil
)
969 (:cffi display-name screen-display-name
(glib:g-string
:free-from-foreign t
)
970 "gdk_screen_make_display_name" nil
)
971 (:cffi n-monitors screen-n-monitors
:int
972 "gdk_screen_get_n_monitors" nil
)
973 (:cffi active-window screen-active-window
(g-object gdk-window
)
974 "gdk_screen_get_active_window" nil
)
975 (:cffi window-stack screen-window-stack
(glib:glist
(g-object gdk-window
) :free-from-foreign t
)
976 "gdk_screen_get_window_stack" nil
)))
978 (define-g-object-class "GdkGC" graphics-context
(:type-initializer
"gdk_gc_get_type")
979 ((:cffi screen graphics-context-screen
(g-object screen
)
980 "gdk_gc_get_screen" nil
)
981 (:cffi foreground graphics-context-foreground
(g-boxed-foreign color
)
982 nil
"gdk_gc_set_foreground")
983 (:cffi background graphics-context-background
(g-boxed-foreign color
)
984 nil
"gdk_gc_set_background")
985 (:cffi rgb-fg-color graphics-context-rgb-fg-color
(g-boxed-foreign color
)
986 nil
"gdk_gc_set_rgb_fg_color")
987 (:cffi rgb-bg-color graphics-context-rgb-bg-color
(g-boxed-foreign color
)
988 nil
"gdk_gc_set_rgb_bg_color")
989 (:cffi font graphics-context-font
(g-boxed-foreign font
)
990 nil
"gdk_gc_set_font")
991 (:cffi function graphics-context-function gdk-function
992 nil
"gdk_gc_set_function")
993 (:cffi fill graphics-context-fill gdk-fill
994 nil
"gdk_gc_set_fill")
995 (:cffi tile graphics-context-tile
(g-object pixmap
)
996 nil
"gdk_gc_set_tile")
997 (:cffi stipple graphics-context-stipple
(g-object pixmap
)
998 nil
"gdk_gc_set_stipple")
999 (:cffi clip-mask graphics-context-clip-mask
(g-object pixmap
)
1000 nil
"gdk_gc_set_clip_mask")
1001 (:cffi clip-rectangle graphics-context-clip-rectangle
(g-boxed-foreign rectangle
)
1002 nil
"gdk_gc_set_clip_rectangle")
1003 (:cffi clip-region graphics-context-clip-region
(g-boxed-foreign region
)
1004 nil
"gdk_gc_set_clip_region")
1005 (:cffi subwindow graphics-context-subwindow subwindow-mode
1006 nil
"gdk_gc_set_subwindow")
1007 (:cffi exposures graphics-context-exposures
:boolean
1008 nil
"gdk_gc_set_exposures")
1009 (:cffi colormap graphics-context-colormap
(g-object colormap
)
1010 "gdk_gc_get_colormap" "gdk_gc_set_colormap")))
1012 (define-g-object-class "GdkPixmap" pixmap
(:superclass drawable
:type-initializer
"gdk_pixmap_get_type") ())
1014 (define-g-object-class "GdkKeymap" keymap
1015 (:superclass g-object
:export t
:interfaces
1016 nil
:type-initializer
"gdk_keymap_get_type")
1017 ((:cffi direction keymap-direction pango
:pango-direction
1018 "gdk_keymap_get_direction" nil
)
1019 (:cffi has-bidi-layouts keymap-has-bidi-layouts
:boolean
1020 "gdk_keymap_have_bidi_layouts" nil
)
1021 (:cffi caps-lock-state keymap-caps-lock-state
:boolean
1022 "gdk_keymap_get_caps_lock_state" nil
)))
1024 (define-g-boxed-cstruct keymap-key nil
1025 (keycode :uint
:initform
0)
1026 (group :int
:initform
0)
1027 (level :int
:initform
0))
1029 (define-g-boxed-cstruct gdk-window-attr nil
1030 (title (:string
:free-from-foreign nil
) :initform nil
)
1031 (event-mask event-mask
:initform nil
)
1032 (x :int
:initform
0)
1033 (y :int
:initform
0)
1034 (width :int
:initform
0)
1035 (height :int
:initform
0)
1036 (window-class gdk-window-class
:initform
:input-output
)
1037 (visual (g-object visual
) :initform nil
)
1038 (colormap (g-object colormap
) :initform nil
)
1039 (window-type gdk-window-type
:initform
:toplevel
)
1040 (cursor (g-object cursor
) :initform nil
)
1041 (wmclass-name (:string
:free-from-foreign nil
) :initform nil
)
1042 (wmclass-class (:string
:free-from-foreign nil
) :initform nil
)
1043 (override-redirect :boolean
:initform nil
)
1044 (type-hint gdk-window-type-hint
:initform
:normal
))
1046 (export (boxed-related-symbols 'gdk-window-attr
))
1048 (define-g-object-class "GdkDevice" gdk-device
1049 (:superclass g-object
:export t
:interfaces
1050 nil
:type-initializer
1051 "gdk_device_get_type")
1052 ((:cffi name gdk-device-name
:string
1053 %gdk-device-name nil
)
1054 (:cffi source gdk-device-source gdk-input-source
1055 %gdk-device-source
"gdk_device_set_source")
1056 (:cffi mode gdk-device-mode gdk-input-mode
1057 %gdk-device-mode gdk_device_set_mode
)
1058 (:cffi has-cursor gdk-device-has-cursor
:boolean
1059 %gdk-device-has-cursor nil
)
1060 (:cffi n-axes gdk-device-n-axes
:int
1061 %gdk-device-n-axes nil
)
1062 (:cffi axes gdk-device-axes nil
1063 %gdk-device-axes nil
)
1064 (:cffi keys gdk-device-keys nil
1065 %gdk-device-keys nil
)
1066 (:cffi n-keys gdk-device-n-keys nil
1067 %gdk-device-n-keys nil
)))
1069 (define-g-object-class "GdkAppLaunchContext"
1070 gdk-app-launch-context
1071 (:superclass g-object
:export t
1072 :interfaces nil
:type-initializer
1073 "gdk_app_launch_context_get_type")
1074 ((:cffi display gdk-app-launch-context-display
(g-object display
)
1075 nil
"gdk_app_launch_context_set_display")
1076 (:cffi screen gdk-app-launch-context-screen
(g-object screen
)
1077 nil
"gdk_app_launch_context_set_screen")
1078 (:cffi desktop gdk-app-launch-context-desktop
:int
1079 nil
"gdk_app_launch_context_set_desktop")
1080 (:cffi timestamp gdk-app-launch-context-timestamp
:uint32
1081 nil
"gdk_app_launch_context_set_timestamp")
1082 (:cffi icon gdk-app-launch-context-icon g-object
1083 nil
"gdk_app_launch_context_set_icon")
1084 (:cffi icon-name gdk-app-launch-context-icon-name
:string
1085 nil
"gdk_app_launch_context_set_icon_name"))) ;; TODO: GIcon