1 /* GDK - The GIMP Drawing Kit
2 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
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
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
21 * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
22 * file for a list of people on the GTK+ Team. See the ChangeLog
23 * files for a list of changes. These files are distributed with
24 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
27 #ifndef __GDK_CURSOR_H__
28 #define __GDK_CURSOR_H__
30 #include <gdk/gdktypes.h>
31 #include <gdk-pixbuf/gdk-pixbuf.h>
35 #define GDK_TYPE_CURSOR (gdk_cursor_get_type ())
43 GDK_BASED_ARROW_DOWN = 4,
44 GDK_BASED_ARROW_UP = 6,
47 GDK_BOTTOM_LEFT_CORNER = 12,
48 GDK_BOTTOM_RIGHT_CORNER = 14,
57 GDK_CROSS_REVERSE = 32,
59 GDK_DIAMOND_CROSS = 36,
62 GDK_DOUBLE_ARROW = 42,
82 GDK_MIDDLEBUTTON = 82,
87 GDK_QUESTION_ARROW = 92,
91 GDK_RIGHTBUTTON = 100,
94 GDK_SB_DOWN_ARROW = 106,
95 GDK_SB_H_DOUBLE_ARROW = 108,
96 GDK_SB_LEFT_ARROW = 110,
97 GDK_SB_RIGHT_ARROW = 112,
98 GDK_SB_UP_ARROW = 114,
99 GDK_SB_V_DOUBLE_ARROW = 116,
107 GDK_TOP_LEFT_ARROW = 132,
108 GDK_TOP_LEFT_CORNER = 134,
109 GDK_TOP_RIGHT_CORNER = 136,
119 GDK_CURSOR_IS_PIXMAP = -1
132 GType gdk_cursor_get_type (void) G_GNUC_CONST;
134 GdkCursor* gdk_cursor_new_for_display (GdkDisplay *display,
135 GdkCursorType cursor_type);
136 #ifndef GDK_MULTIHEAD_SAFE
137 GdkCursor* gdk_cursor_new (GdkCursorType cursor_type);
139 GdkCursor* gdk_cursor_new_from_pixmap (GdkPixmap *source,
145 GdkCursor* gdk_cursor_new_from_pixbuf (GdkDisplay *display,
149 GdkDisplay* gdk_cursor_get_display (GdkCursor *cursor);
150 GdkCursor* gdk_cursor_ref (GdkCursor *cursor);
151 void gdk_cursor_unref (GdkCursor *cursor);
152 GdkCursor* gdk_cursor_new_from_name (GdkDisplay *display,
154 GdkPixbuf* gdk_cursor_get_image (GdkCursor *cursor);
156 #ifndef GDK_DISABLE_DEPRECATED
157 #define gdk_cursor_destroy gdk_cursor_unref
158 #endif /* GDK_DISABLE_DEPRECATED */
162 #endif /* __GDK_CURSOR_H__ */