1999-10-01 23:18:30 +00:00
|
|
|
#ifndef __GDK_CURSOR_H__
|
|
|
|
#define __GDK_CURSOR_H__
|
|
|
|
|
|
|
|
#include <gdk/gdktypes.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2001-06-28 16:35:38 +00:00
|
|
|
#define GDK_TYPE_CURSOR (gdk_cursor_get_type ())
|
|
|
|
|
1999-10-01 23:18:30 +00:00
|
|
|
/* Cursor types.
|
|
|
|
*/
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
#include <gdk/gdkcursors.h>
|
|
|
|
GDK_LAST_CURSOR,
|
|
|
|
GDK_CURSOR_IS_PIXMAP = -1
|
|
|
|
} GdkCursorType;
|
|
|
|
|
|
|
|
struct _GdkCursor
|
|
|
|
{
|
|
|
|
GdkCursorType type;
|
2000-02-13 08:16:48 +00:00
|
|
|
guint ref_count;
|
1999-10-01 23:18:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Cursors
|
|
|
|
*/
|
2001-06-28 16:35:38 +00:00
|
|
|
|
|
|
|
GType gdk_cursor_get_type (void);
|
|
|
|
|
2000-02-13 08:16:48 +00:00
|
|
|
GdkCursor* gdk_cursor_new (GdkCursorType cursor_type);
|
1999-10-01 23:18:30 +00:00
|
|
|
GdkCursor* gdk_cursor_new_from_pixmap (GdkPixmap *source,
|
|
|
|
GdkPixmap *mask,
|
|
|
|
GdkColor *fg,
|
|
|
|
GdkColor *bg,
|
|
|
|
gint x,
|
|
|
|
gint y);
|
2000-01-29 22:26:41 +00:00
|
|
|
GdkCursor* gdk_cursor_ref (GdkCursor *cursor);
|
|
|
|
void gdk_cursor_unref (GdkCursor *cursor);
|
1999-10-01 23:18:30 +00:00
|
|
|
|
2001-08-23 15:26:49 +00:00
|
|
|
#ifndef GDK_DISABLE_DEPRECATED
|
|
|
|
#define gdk_cursor_destroy gdk_cursor_unref
|
|
|
|
#endif /* GDK_DISABLE_DEPRECATED */
|
|
|
|
|
1999-10-01 23:18:30 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
#endif /* __GDK_CURSOR_H__ */
|