Set correct GdkNativeWindow typedef on Windows
[cl-gtk2.git] / gdk / gdk.cursor.lisp
1 (in-package :gdk)
2
3 (defcstruct %gdk-cursor
4   (cursor-type cursor-type))
5
6 (defun cursor-cursor-type (cursor)
7   (foreign-slot-value (pointer cursor) '%gdk-cursor 'cursor-type))
8
9 (export 'cursor-cursor-type)
10
11 (defcfun (cursor-new "gdk_cursor_new") (g-boxed-foreign cursor :return)
12   (cursor-type cursor-type))
13
14 (export 'cursor-new)
15
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))
23
24 (export 'cursor-new-from-pixmap)
25
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))
31
32 (export 'cursor-new-from-pixbuf)
33
34 (defcfun (cursor-new-from-name "gdk_cursor_new_from_name") (g-boxed-foreign cursor :return)
35   (display (g-object display))
36   (name :string))
37
38 (export 'cursor-new-from-name)
39
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))
43
44 (export 'cursor-new-for-display)
45
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")
48
49 (export '(cursor-display cursor-image))