mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-18 09:00:34 +00:00
a2d60d44b1
Wed Aug 22 19:15:39 2001 Owen Taylor <otaylor@redhat.com> [ Patch from Sebastian Wilhelmi, 52790 ] * gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h * gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h: Move compatibility macros from g[dt]kcompat.h to within #ifndef G[DT]K_DISABLE_DEPRECATED in each file. * gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h. * demos/Makefile.am demos/gtk-demo/Makefile.am docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED. * demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c, testpixbuf.c}: Fix usages of deprecated functions.
51 lines
1014 B
C
51 lines
1014 B
C
#ifndef __GDK_CURSOR_H__
|
|
#define __GDK_CURSOR_H__
|
|
|
|
#include <gdk/gdktypes.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
|
|
#define GDK_TYPE_CURSOR (gdk_cursor_get_type ())
|
|
|
|
/* Cursor types.
|
|
*/
|
|
typedef enum
|
|
{
|
|
#include <gdk/gdkcursors.h>
|
|
GDK_LAST_CURSOR,
|
|
GDK_CURSOR_IS_PIXMAP = -1
|
|
} GdkCursorType;
|
|
|
|
struct _GdkCursor
|
|
{
|
|
GdkCursorType type;
|
|
guint ref_count;
|
|
};
|
|
|
|
/* Cursors
|
|
*/
|
|
|
|
GType gdk_cursor_get_type (void);
|
|
|
|
GdkCursor* gdk_cursor_new (GdkCursorType cursor_type);
|
|
GdkCursor* gdk_cursor_new_from_pixmap (GdkPixmap *source,
|
|
GdkPixmap *mask,
|
|
GdkColor *fg,
|
|
GdkColor *bg,
|
|
gint x,
|
|
gint y);
|
|
GdkCursor* gdk_cursor_ref (GdkCursor *cursor);
|
|
void gdk_cursor_unref (GdkCursor *cursor);
|
|
|
|
#ifndef GDK_DISABLE_DEPRECATED
|
|
#define gdk_cursor_destroy gdk_cursor_unref
|
|
#endif /* GDK_DISABLE_DEPRECATED */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
|
|
#endif /* __GDK_CURSOR_H__ */
|