You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

169 lines
4.7 KiB

  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. * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
  21. * file for a list of people on the GTK+ Team. See the ChangeLog
  22. * files for a list of changes. These files are distributed with
  23. * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  24. */
  25. #if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
  26. #error "Only <gdk/gdk.h> can be included directly."
  27. #endif
  28. #ifndef __GDK_CURSOR_H__
  29. #define __GDK_CURSOR_H__
  30. #include <gdk/gdktypes.h>
  31. #include <gdk-pixbuf/gdk-pixbuf.h>
  32. G_BEGIN_DECLS
  33. #define GDK_TYPE_CURSOR (gdk_cursor_get_type ())
  34. /* Cursor types.
  35. */
  36. typedef enum
  37. {
  38. GDK_X_CURSOR = 0,
  39. GDK_ARROW = 2,
  40. GDK_BASED_ARROW_DOWN = 4,
  41. GDK_BASED_ARROW_UP = 6,
  42. GDK_BOAT = 8,
  43. GDK_BOGOSITY = 10,
  44. GDK_BOTTOM_LEFT_CORNER = 12,
  45. GDK_BOTTOM_RIGHT_CORNER = 14,
  46. GDK_BOTTOM_SIDE = 16,
  47. GDK_BOTTOM_TEE = 18,
  48. GDK_BOX_SPIRAL = 20,
  49. GDK_CENTER_PTR = 22,
  50. GDK_CIRCLE = 24,
  51. GDK_CLOCK = 26,
  52. GDK_COFFEE_MUG = 28,
  53. GDK_CROSS = 30,
  54. GDK_CROSS_REVERSE = 32,
  55. GDK_CROSSHAIR = 34,
  56. GDK_DIAMOND_CROSS = 36,
  57. GDK_DOT = 38,
  58. GDK_DOTBOX = 40,
  59. GDK_DOUBLE_ARROW = 42,
  60. GDK_DRAFT_LARGE = 44,
  61. GDK_DRAFT_SMALL = 46,
  62. GDK_DRAPED_BOX = 48,
  63. GDK_EXCHANGE = 50,
  64. GDK_FLEUR = 52,
  65. GDK_GOBBLER = 54,
  66. GDK_GUMBY = 56,
  67. GDK_HAND1 = 58,
  68. GDK_HAND2 = 60,
  69. GDK_HEART = 62,
  70. GDK_ICON = 64,
  71. GDK_IRON_CROSS = 66,
  72. GDK_LEFT_PTR = 68,
  73. GDK_LEFT_SIDE = 70,
  74. GDK_LEFT_TEE = 72,
  75. GDK_LEFTBUTTON = 74,
  76. GDK_LL_ANGLE = 76,
  77. GDK_LR_ANGLE = 78,
  78. GDK_MAN = 80,
  79. GDK_MIDDLEBUTTON = 82,
  80. GDK_MOUSE = 84,
  81. GDK_PENCIL = 86,
  82. GDK_PIRATE = 88,
  83. GDK_PLUS = 90,
  84. GDK_QUESTION_ARROW = 92,
  85. GDK_RIGHT_PTR = 94,
  86. GDK_RIGHT_SIDE = 96,
  87. GDK_RIGHT_TEE = 98,
  88. GDK_RIGHTBUTTON = 100,
  89. GDK_RTL_LOGO = 102,
  90. GDK_SAILBOAT = 104,
  91. GDK_SB_DOWN_ARROW = 106,
  92. GDK_SB_H_DOUBLE_ARROW = 108,
  93. GDK_SB_LEFT_ARROW = 110,
  94. GDK_SB_RIGHT_ARROW = 112,
  95. GDK_SB_UP_ARROW = 114,
  96. GDK_SB_V_DOUBLE_ARROW = 116,
  97. GDK_SHUTTLE = 118,
  98. GDK_SIZING = 120,
  99. GDK_SPIDER = 122,
  100. GDK_SPRAYCAN = 124,
  101. GDK_STAR = 126,
  102. GDK_TARGET = 128,
  103. GDK_TCROSS = 130,
  104. GDK_TOP_LEFT_ARROW = 132,
  105. GDK_TOP_LEFT_CORNER = 134,
  106. GDK_TOP_RIGHT_CORNER = 136,
  107. GDK_TOP_SIDE = 138,
  108. GDK_TOP_TEE = 140,
  109. GDK_TREK = 142,
  110. GDK_UL_ANGLE = 144,
  111. GDK_UMBRELLA = 146,
  112. GDK_UR_ANGLE = 148,
  113. GDK_WATCH = 150,
  114. GDK_XTERM = 152,
  115. GDK_LAST_CURSOR,
  116. GDK_BLANK_CURSOR = -2,
  117. GDK_CURSOR_IS_PIXMAP = -1
  118. } GdkCursorType;
  119. struct _GdkCursor
  120. {
  121. GdkCursorType GSEAL (type);
  122. /*< private >*/
  123. guint GSEAL (ref_count);
  124. };
  125. /* Cursors
  126. */
  127. GType gdk_cursor_get_type (void) G_GNUC_CONST;
  128. GdkCursor* gdk_cursor_new_for_display (GdkDisplay *display,
  129. GdkCursorType cursor_type);
  130. #ifndef GDK_MULTIHEAD_SAFE
  131. GdkCursor* gdk_cursor_new (GdkCursorType cursor_type);
  132. #endif
  133. GdkCursor* gdk_cursor_new_from_pixmap (GdkPixmap *source,
  134. GdkPixmap *mask,
  135. const GdkColor *fg,
  136. const GdkColor *bg,
  137. gint x,
  138. gint y);
  139. GdkCursor* gdk_cursor_new_from_pixbuf (GdkDisplay *display,
  140. GdkPixbuf *pixbuf,
  141. gint x,
  142. gint y);
  143. GdkDisplay* gdk_cursor_get_display (GdkCursor *cursor);
  144. GdkCursor* gdk_cursor_ref (GdkCursor *cursor);
  145. void gdk_cursor_unref (GdkCursor *cursor);
  146. GdkCursor* gdk_cursor_new_from_name (GdkDisplay *display,
  147. const gchar *name);
  148. GdkPixbuf* gdk_cursor_get_image (GdkCursor *cursor);
  149. GdkCursorType gdk_cursor_get_cursor_type (GdkCursor *cursor);
  150. #ifndef GDK_DISABLE_DEPRECATED
  151. #define gdk_cursor_destroy gdk_cursor_unref
  152. #endif /* GDK_DISABLE_DEPRECATED */
  153. G_END_DECLS
  154. #endif /* __GDK_CURSOR_H__ */