diff options
author | Egbert Eich <eich@suse.de> | 2004-03-09 16:52:30 +0000 |
---|---|---|
committer | Egbert Eich <eich@suse.de> | 2004-03-09 16:52:30 +0000 |
commit | 6f8690d1315566cc7b43016d5c2e697bf86d6200 (patch) | |
tree | ceabbb953226f775a7347183bcf763ca6fb11b37 /include | |
parent | 4510bb5692ff7e210b1c7f6523191de09b5bae1f (diff) |
25. Updating Xcursor, Xrender, Xft (Egbert Eich).xo-6_7_0XPRINT_BEGINXPRINT_BASEXORG-TM-CYGWIN-MERGEXORG-TM-CYGWIN-LAST-MERGEXORG-RELEASE-1-TM-MERGEXORG-RELEASE-1-TM-CLOSEDXORG-RELEASE-1-TM-BASEXORG-RELEASE-1-STSF-FORKXORG-RELEASE-1-MERGEXORG-CYGWIN-MERGEXORG-CYGWIN-LAST-MERGEXORG-6_7_0IPv6-REVIEW-BASEXPRINTXORG-RELEASE-1-TMXORG-RELEASE-1-STSFXORG-RELEASE-1IPv6-REVIEW
Diffstat (limited to 'include')
-rw-r--r-- | include/X11/Xcursor/Xcursor.h | 35 |
1 files changed, 30 insertions, 5 deletions
diff --git a/include/X11/Xcursor/Xcursor.h b/include/X11/Xcursor/Xcursor.h index c4b4ac2..5a6b74c 100644 --- a/include/X11/Xcursor/Xcursor.h +++ b/include/X11/Xcursor/Xcursor.h @@ -1,7 +1,7 @@ /* - * $XFree86: xc/lib/Xcursor/Xcursor.h,v 1.3 2002/11/23 02:34:45 keithp Exp $ + * $Id$ * - * Copyright © 2002 Keith Packard, member of The XFree86 Project, Inc. + * Copyright © 2002 Keith Packard * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -69,9 +69,26 @@ typedef XcursorUInt XcursorPixel; #define XCURSOR_MAGIC 0x72756358 /* "Xcur" LSBFirst */ -#define XCURSOR_MAJOR 1 -#define XCURSOR_MINOR 0 -#define XCURSOR_VERSION ((XCURSOR_MAJOR << 16) | (XCURSOR_MINOR)) +/* + * Current Xcursor version number. This same number + * must appear in the Xcursor configure.ac file. Yes, + * it'a a pain to synchronize version numbers like this. + */ + +#define XCURSOR_LIB_MAJOR 1 +#define XCURSOR_LIB_MINOR 1 +#define XCURSOR_LIB_REVISION 2 +#define XCURSOR_LIB_VERSION ((XCURSOR_LIB_MAJOR * 10000) + \ + (XCURSOR_LIB_MINOR * 100) + \ + (XCURSOR_LIB_REVISION)) + +/* + * This version number is stored in cursor files; changes to the + * file format require updating this version number + */ +#define XCURSOR_FILE_MAJOR 1 +#define XCURSOR_FILE_MINOR 0 +#define XCURSOR_FILE_VERSION ((XCURSOR_FILE_MAJOR << 16) | (XCURSOR_FILE_MINOR)) #define XCURSOR_FILE_HEADER_LEN (4 * 4) #define XCURSOR_FILE_TOC_LEN (3 * 4) @@ -180,6 +197,7 @@ typedef struct _XcursorImage { typedef struct _XcursorImages { int nimage; /* number of images */ XcursorImage **images; /* array of XcursorImage pointers */ + char *name; /* name used to load images */ } XcursorImages; typedef struct _XcursorCursors { @@ -230,6 +248,9 @@ XcursorImagesCreate (int size); void XcursorImagesDestroy (XcursorImages *images); +void +XcursorImagesSetName (XcursorImages *images, const char *name); + /* * Manage Cursor objects */ @@ -350,6 +371,10 @@ XcursorLibraryLoadImages (const char *library, const char *theme, int size); /* * Library/shape API */ + +const char * +XcursorLibraryPath (void); + int XcursorLibraryShape (const char *library); |