gdkcursor.h 789 Bytes
Newer Older
Owen Taylor's avatar
Owen Taylor committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#ifndef __GDK_CURSOR_H__
#define __GDK_CURSOR_H__

#include <gdk/gdktypes.h>

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

/* Cursor types.
 */
typedef enum
{
#include <gdk/gdkcursors.h>
  GDK_LAST_CURSOR,
  GDK_CURSOR_IS_PIXMAP = -1
} GdkCursorType;

struct _GdkCursor
{
  GdkCursorType type;
Tim Janik's avatar
Tim Janik committed
22
  guint ref_count;
Owen Taylor's avatar
Owen Taylor committed
23 24 25 26
};

/* Cursors
 */
Tim Janik's avatar
Tim Janik committed
27
GdkCursor* gdk_cursor_new		 (GdkCursorType	   cursor_type);
Owen Taylor's avatar
Owen Taylor committed
28 29 30 31 32 33
GdkCursor* gdk_cursor_new_from_pixmap	 (GdkPixmap	  *source,
					  GdkPixmap	  *mask,
					  GdkColor	  *fg,
					  GdkColor	  *bg,
					  gint		   x,
					  gint		   y);
34 35
GdkCursor* gdk_cursor_ref                (GdkCursor      *cursor);
void       gdk_cursor_unref              (GdkCursor      *cursor);
Owen Taylor's avatar
Owen Taylor committed
36 37 38 39 40 41

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* __GDK_CURSOR_H__ */