Lines Matching defs:cursor

20  * A TkCursor structure exists for each cursor that is currently
27 * Hash table to map from a textual description of a cursor to the
28 * TkCursor record for the cursor, and key structure used in that
34 Tk_Uid name; /* Textual name for desired cursor. */
35 Display *display; /* Display for which cursor will be used. */
40 * cursor (bitmap contents, etc.) to a TkCursor structure:
47 int width, height; /* Dimensions of cursor (and data
49 int xHot, yHot; /* Location of cursor hot-spot. */
50 Tk_Uid fg, bg; /* Colors for cursor. */
51 Display *display; /* Display on which cursor will be used. */
55 * Hash table that maps from <display + cursor id> to the TkCursor structure
56 * for the cursor. This table is used by Tk_FreeCursor.
61 Display *display; /* Display for which cursor was allocated. */
62 Tk_Cursor cursor; /* Cursor identifier. */
80 * Given a string describing a cursor, locate (or create if necessary)
81 * a cursor that fits the description.
84 * The return value is the X identifer for the desired cursor,
87 * The caller should never modify the cursor that is returned, and
88 * should eventually call Tk_FreeCursor when the cursor is no longer
92 * The cursor is added to an internal database with a reference count.
103 Tk_Window tkwin; /* Window in which cursor will be used. */
104 Tk_Uid string; /* Description of cursor. See manual entry
123 return cursorPtr->cursor;
134 * Add information about this cursor to our database.
141 idKey.cursor = cursorPtr->cursor;
144 panic("cursor already registered in Tk_GetCursor");
149 return cursorPtr->cursor;
158 * Given a description of the bits and colors for a cursor,
159 * make a cursor that has the given properties.
162 * The return value is the X identifer for the desired cursor,
165 * caller should never modify the cursor that is returned, and
166 * should eventually call Tk_FreeCursor when the cursor is no
170 * The cursor is added to an internal database with a reference count.
182 Tk_Window tkwin; /* Window in which cursor will be used. */
183 char *source; /* Bitmap data for cursor shape. */
184 char *mask; /* Bitmap data for cursor mask. */
185 int width, height; /* Dimensions of cursor. */
186 int xHot, yHot; /* Location of hot-spot in cursor. */
187 Tk_Uid fg; /* Foreground color for cursor. */
188 Tk_Uid bg; /* Background color for cursor. */
214 return cursorPtr->cursor;
218 * No suitable cursor exists yet. Make one using the data
244 idKey.cursor = cursorPtr->cursor;
247 panic("cursor already registered in Tk_GetCursorFromData");
251 return cursorPtr->cursor;
264 * Given a cursor, return a textual string identifying it.
267 * If cursor was created by Tk_GetCursor, then the return
270 * identifier for the cursor. The storage for the returned
281 Tk_NameOfCursor(display, cursor)
282 Display *display; /* Display for which cursor was allocated. */
283 Tk_Cursor cursor; /* Identifier for cursor whose name is
294 sprintf(string, "cursor id %p", cursor);
298 idKey.cursor = cursor;
317 * This procedure is called to release a cursor allocated by
324 * The reference count associated with cursor is decremented, and
331 Tk_FreeCursor(display, cursor)
332 Display *display; /* Display for which cursor was allocated. */
333 Tk_Cursor cursor; /* Identifier for cursor to be released. */
344 idKey.cursor = cursor;
347 panic("Tk_FreeCursor received unknown cursor argument");
364 * Initialize the structures used for cursor management.