Ardour  9.0-pre0-582-g084a23a80d
gdkcursor.h
Go to the documentation of this file.
1 /* GDK - The GIMP Drawing Kit
2  * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
3  *
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.
8  *
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.
13  *
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.
18  */
19 
20 /*
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/.
25  */
26 
27 #ifndef __GDK_CURSOR_H__
28 #define __GDK_CURSOR_H__
29 
30 #if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
31 #error "Only <gdk/gdk.h> can be included directly."
32 #endif
33 
34 #include <gdk/gdktypes.h>
35 #include <gdk-pixbuf/gdk-pixbuf.h>
36 
37 G_BEGIN_DECLS
38 
39 #define GDK_TYPE_CURSOR (gdk_cursor_get_type ())
40 
41 /* Cursor types.
42  */
43 typedef enum
44 {
46  GDK_ARROW = 2,
49  GDK_BOAT = 8,
57  GDK_CIRCLE = 24,
58  GDK_CLOCK = 26,
60  GDK_CROSS = 30,
64  GDK_DOT = 38,
65  GDK_DOTBOX = 40,
71  GDK_FLEUR = 52,
73  GDK_GUMBY = 56,
74  GDK_HAND1 = 58,
75  GDK_HAND2 = 60,
76  GDK_HEART = 62,
77  GDK_ICON = 64,
85  GDK_MAN = 80,
87  GDK_MOUSE = 84,
88  GDK_PENCIL = 86,
89  GDK_PIRATE = 88,
90  GDK_PLUS = 90,
96  GDK_RTL_LOGO = 102,
97  GDK_SAILBOAT = 104,
104  GDK_SHUTTLE = 118,
105  GDK_SIZING = 120,
106  GDK_SPIDER = 122,
108  GDK_STAR = 126,
109  GDK_TARGET = 128,
110  GDK_TCROSS = 130,
115  GDK_TOP_TEE = 140,
116  GDK_TREK = 142,
120  GDK_WATCH = 150,
121  GDK_XTERM = 152,
126 
128 {
130  /*< private >*/
131  guint GSEAL (ref_count);
132 };
133 
134 /* Cursors
135  */
136 
137 GType gdk_cursor_get_type (void) G_GNUC_CONST;
138 
140  GdkCursorType cursor_type);
141 #ifndef GDK_MULTIHEAD_SAFE
143 #endif
145  GdkPixmap *mask,
146  const GdkColor *fg,
147  const GdkColor *bg,
148  gint x,
149  gint y);
151  GdkPixbuf *pixbuf,
152  gint x,
153  gint y);
158  const gchar *name);
159 GdkPixbuf* gdk_cursor_get_image (GdkCursor *cursor);
161 
162 #ifndef GDK_DISABLE_DEPRECATED
163 #define gdk_cursor_destroy gdk_cursor_unref
164 #endif /* GDK_DISABLE_DEPRECATED */
165 
166 G_END_DECLS
167 
168 #endif /* __GDK_CURSOR_H__ */
GdkDisplay * gdk_cursor_get_display(GdkCursor *cursor)
GdkCursor * gdk_cursor_new_from_pixbuf(GdkDisplay *display, GdkPixbuf *pixbuf, gint x, gint y)
GdkCursor * gdk_cursor_new_from_pixmap(GdkPixmap *source, GdkPixmap *mask, const GdkColor *fg, const GdkColor *bg, gint x, gint y)
GdkCursor * gdk_cursor_new(GdkCursorType cursor_type)
GdkCursorType
Definition: gdkcursor.h:44
@ GDK_PENCIL
Definition: gdkcursor.h:88
@ GDK_DIAMOND_CROSS
Definition: gdkcursor.h:63
@ GDK_TOP_TEE
Definition: gdkcursor.h:115
@ GDK_LEFT_SIDE
Definition: gdkcursor.h:80
@ GDK_DRAFT_LARGE
Definition: gdkcursor.h:67
@ GDK_RTL_LOGO
Definition: gdkcursor.h:96
@ GDK_HAND2
Definition: gdkcursor.h:75
@ GDK_PLUS
Definition: gdkcursor.h:90
@ GDK_IRON_CROSS
Definition: gdkcursor.h:78
@ GDK_DOUBLE_ARROW
Definition: gdkcursor.h:66
@ GDK_STAR
Definition: gdkcursor.h:108
@ GDK_ARROW
Definition: gdkcursor.h:46
@ GDK_SPIDER
Definition: gdkcursor.h:106
@ GDK_ICON
Definition: gdkcursor.h:77
@ GDK_TOP_LEFT_ARROW
Definition: gdkcursor.h:111
@ GDK_LEFT_TEE
Definition: gdkcursor.h:81
@ GDK_TOP_LEFT_CORNER
Definition: gdkcursor.h:112
@ GDK_BOTTOM_RIGHT_CORNER
Definition: gdkcursor.h:52
@ GDK_CROSSHAIR
Definition: gdkcursor.h:62
@ GDK_BOAT
Definition: gdkcursor.h:49
@ GDK_SAILBOAT
Definition: gdkcursor.h:97
@ GDK_GUMBY
Definition: gdkcursor.h:73
@ GDK_WATCH
Definition: gdkcursor.h:120
@ GDK_HEART
Definition: gdkcursor.h:76
@ GDK_LEFT_PTR
Definition: gdkcursor.h:79
@ GDK_GOBBLER
Definition: gdkcursor.h:72
@ GDK_UMBRELLA
Definition: gdkcursor.h:118
@ GDK_SB_UP_ARROW
Definition: gdkcursor.h:102
@ GDK_CIRCLE
Definition: gdkcursor.h:57
@ GDK_CROSS
Definition: gdkcursor.h:60
@ GDK_MIDDLEBUTTON
Definition: gdkcursor.h:86
@ GDK_BASED_ARROW_DOWN
Definition: gdkcursor.h:47
@ GDK_TOP_RIGHT_CORNER
Definition: gdkcursor.h:113
@ GDK_BOTTOM_LEFT_CORNER
Definition: gdkcursor.h:51
@ GDK_LAST_CURSOR
Definition: gdkcursor.h:122
@ GDK_SB_DOWN_ARROW
Definition: gdkcursor.h:98
@ GDK_X_CURSOR
Definition: gdkcursor.h:45
@ GDK_COFFEE_MUG
Definition: gdkcursor.h:59
@ GDK_TCROSS
Definition: gdkcursor.h:110
@ GDK_BOTTOM_TEE
Definition: gdkcursor.h:54
@ GDK_UL_ANGLE
Definition: gdkcursor.h:117
@ GDK_TOP_SIDE
Definition: gdkcursor.h:114
@ GDK_DRAPED_BOX
Definition: gdkcursor.h:69
@ GDK_RIGHTBUTTON
Definition: gdkcursor.h:95
@ GDK_MOUSE
Definition: gdkcursor.h:87
@ GDK_QUESTION_ARROW
Definition: gdkcursor.h:91
@ GDK_BOGOSITY
Definition: gdkcursor.h:50
@ GDK_DOTBOX
Definition: gdkcursor.h:65
@ GDK_PIRATE
Definition: gdkcursor.h:89
@ GDK_LR_ANGLE
Definition: gdkcursor.h:84
@ GDK_TREK
Definition: gdkcursor.h:116
@ GDK_XTERM
Definition: gdkcursor.h:121
@ GDK_LL_ANGLE
Definition: gdkcursor.h:83
@ GDK_CLOCK
Definition: gdkcursor.h:58
@ GDK_BLANK_CURSOR
Definition: gdkcursor.h:123
@ GDK_MAN
Definition: gdkcursor.h:85
@ GDK_SB_LEFT_ARROW
Definition: gdkcursor.h:100
@ GDK_CURSOR_IS_PIXMAP
Definition: gdkcursor.h:124
@ GDK_SPRAYCAN
Definition: gdkcursor.h:107
@ GDK_BOTTOM_SIDE
Definition: gdkcursor.h:53
@ GDK_CROSS_REVERSE
Definition: gdkcursor.h:61
@ GDK_SB_V_DOUBLE_ARROW
Definition: gdkcursor.h:103
@ GDK_SIZING
Definition: gdkcursor.h:105
@ GDK_BOX_SPIRAL
Definition: gdkcursor.h:55
@ GDK_FLEUR
Definition: gdkcursor.h:71
@ GDK_HAND1
Definition: gdkcursor.h:74
@ GDK_SHUTTLE
Definition: gdkcursor.h:104
@ GDK_RIGHT_SIDE
Definition: gdkcursor.h:93
@ GDK_RIGHT_TEE
Definition: gdkcursor.h:94
@ GDK_LEFTBUTTON
Definition: gdkcursor.h:82
@ GDK_SB_RIGHT_ARROW
Definition: gdkcursor.h:101
@ GDK_DOT
Definition: gdkcursor.h:64
@ GDK_TARGET
Definition: gdkcursor.h:109
@ GDK_SB_H_DOUBLE_ARROW
Definition: gdkcursor.h:99
@ GDK_RIGHT_PTR
Definition: gdkcursor.h:92
@ GDK_EXCHANGE
Definition: gdkcursor.h:70
@ GDK_UR_ANGLE
Definition: gdkcursor.h:119
@ GDK_BASED_ARROW_UP
Definition: gdkcursor.h:48
@ GDK_DRAFT_SMALL
Definition: gdkcursor.h:68
@ GDK_CENTER_PTR
Definition: gdkcursor.h:56
GdkCursorType gdk_cursor_get_cursor_type(GdkCursor *cursor)
GdkCursor * gdk_cursor_ref(GdkCursor *cursor)
GdkCursor * gdk_cursor_new_from_name(GdkDisplay *display, const gchar *name)
GType gdk_cursor_get_type(void) G_GNUC_CONST
void gdk_cursor_unref(GdkCursor *cursor)
GdkCursor * gdk_cursor_new_for_display(GdkDisplay *display, GdkCursorType cursor_type)
GdkPixbuf * gdk_cursor_get_image(GdkCursor *cursor)
GtkImageIconNameData name
Definition: gtkimage.h:6
GtkImagePixbufData pixbuf
Definition: gtkimage.h:2
guint GSEAL(ref_count)
GdkCursorType GSEAL(type)