3 (defcstruct %gdk-cursor
4 (cursor-type cursor-type))
5 (defctype %gdk-cursor (:struct %gdk-cursor))
7 (defun cursor-cursor-type (cursor)
8 (foreign-slot-value (pointer cursor) '%gdk-cursor 'cursor-type))
10 (export 'cursor-cursor-type)
12 (defcfun (cursor-new "gdk_cursor_new") (g-boxed-foreign cursor :return)
13 (cursor-type cursor-type))
17 (defcfun (cursor-new-from-pixmap "gdk_cursor_new_from_pixmap") (g-boxed-foreign cursor :return)
18 (source (g-object pixmap))
19 (make (g-object pixmap))
20 (fg-color (g-boxed-foreign color))
21 (bg-color (g-boxed-foreign color))
25 (export 'cursor-new-from-pixmap)
27 (defcfun (cursor-new-from-pixbuf "gdk_cursor_new_from_pixbuf") (g-boxed-foreign cursor :return)
28 (display (g-object display))
29 (pixbuf (g-object pixbuf))
33 (export 'cursor-new-from-pixbuf)
35 (defcfun (cursor-new-from-name "gdk_cursor_new_from_name") (g-boxed-foreign cursor :return)
36 (display (g-object display))
39 (export 'cursor-new-from-name)
41 (defcfun (cursor-new-for-display "gdk_cursor_new_for_display") (g-boxed-foreign cursor :return)
42 (display (g-object display))
43 (cursor-type cursor-type))
45 (export 'cursor-new-for-display)
47 (define-boxed-opaque-accessor cursor cursor-display :type (g-object display) :reader "gdk_cursor_get_display")
48 (define-boxed-opaque-accessor cursor cursor-image :type (g-object pixbuf) :reader "gdk_cursor_get_image")
50 (export '(cursor-display cursor-image))