Correct the DEFPACKAGE for GOBJECT to work with recent closer-mop (0.60)
[cl-gtk2.git] / gdk / gdk.cursor.lisp
blob324143e3173a46be29b6ca30c0b05efc4b9294d2
1 (in-package :gdk)
3 (defcstruct %gdk-cursor
4 (cursor-type cursor-type))
6 (defun cursor-cursor-type (cursor)
7 (foreign-slot-value (pointer cursor) '%gdk-cursor 'cursor-type))
9 (export 'cursor-cursor-type)
11 (defcfun (cursor-new "gdk_cursor_new") (g-boxed-foreign cursor :return)
12 (cursor-type cursor-type))
14 (export 'cursor-new)
16 (defcfun (cursor-new-from-pixmap "gdk_cursor_new_from_pixmap") (g-boxed-foreign cursor :return)
17 (source (g-object pixmap))
18 (make (g-object pixmap))
19 (fg-color (g-boxed-foreign color))
20 (bg-color (g-boxed-foreign color))
21 (x :int)
22 (y :int))
24 (export 'cursor-new-from-pixmap)
26 (defcfun (cursor-new-from-pixbuf "gdk_cursor_new_from_pixbuf") (g-boxed-foreign cursor :return)
27 (display (g-object display))
28 (pixbuf (g-object pixbuf))
29 (x :int)
30 (y :int))
32 (export 'cursor-new-from-pixbuf)
34 (defcfun (cursor-new-from-name "gdk_cursor_new_from_name") (g-boxed-foreign cursor :return)
35 (display (g-object display))
36 (name :string))
38 (export 'cursor-new-from-name)
40 (defcfun (cursor-new-for-display "gdk_cursor_new_for_display") (g-boxed-foreign cursor :return)
41 (display (g-object display))
42 (cursor-type cursor-type))
44 (export 'cursor-new-for-display)
46 (define-boxed-opaque-accessor cursor cursor-display :type (g-object display) :reader "gdk_cursor_get_display")
47 (define-boxed-opaque-accessor cursor cursor-image :type (g-object pixbuf) :reader "gdk_cursor_get_image")
49 (export '(cursor-display cursor-image))