Lines Matching defs:bitmap

34  * One of the following data structures exists for each bitmap that is
40 Pixmap bitmap; /* X identifier for bitmap. None means this
41 * bitmap was created by Tk_DefineBitmap
43 int width, height; /* Dimensions of bitmap. */
44 Display *display; /* Display for which bitmap is valid. */
45 int refCount; /* Number of active uses of bitmap. */
51 * Hash table to map from a textual description of a bitmap to the
52 * TkBitmap record for the bitmap, and key structure used in that
58 Tk_Uid name; /* Textual name for desired bitmap. */
59 Screen *screen; /* Screen on which bitmap will be used. */
63 * Hash table that maps from <display + bitmap id> to the TkBitmap structure
64 * for the bitmap. This table is used by Tk_FreeBitmap.
69 Display *display; /* Display for which bitmap was allocated. */
75 * created to hold information about the bitmap.
79 char *source; /* Bits for bitmap. */
80 int width, height; /* Dimensions of bitmap. */
85 * collection of in-core data about a bitmap. The table is
86 * indexed by the address of the data for the bitmap, and the entries
94 * of in-core data about a bitmap to a Tk_Uid giving an automatically-
95 * generated name for the bitmap:
101 int width, height; /* Dimensions of bitmap. */
119 * Given a string describing a bitmap, locate (or create if necessary)
120 * a bitmap that fits the description.
123 * The return value is the X identifer for the desired bitmap
127 * modify the bitmap that is returned, and should eventually call
128 * Tk_FreeBitmap when the bitmap is no longer needed.
131 * The bitmap is added to an internal database with a reference count.
142 Tk_Window tkwin; /* Window in which bitmap will be used. */
143 Tk_Uid string; /* Description of bitmap. See manual entry
152 Pixmap bitmap;
166 return bitmapPtr->bitmap;
170 * No suitable bitmap exists. Create a new bitmap from the
173 * the bitmap. Otherwise the string must refer to a bitmap
188 &bitmap, &dummy2, &dummy2);
191 Tcl_AppendResult(interp, "error reading bitmap file \"", string,
205 Tcl_AppendResult(interp, "bitmap \"", string,
213 bitmap = XCreateBitmapFromData(Tk_Display(tkwin),
219 * Add information about this bitmap to our database.
223 bitmapPtr->bitmap = bitmap;
230 idKey.pixmap = bitmap;
234 panic("bitmap already registered in Tk_GetBitmap");
238 return bitmapPtr->bitmap;
251 * This procedure associates a textual name with a binary bitmap
253 * bitmap in future calls to Tk_GetBitmap.
260 * "Name" is entered into the bitmap table and may be used from
261 * here on to refer to the given bitmap.
269 Tk_Uid name; /* Name to use for bitmap. Must not already
270 * be defined as a bitmap. */
271 char *source; /* Address of bits for bitmap. */
272 int width; /* Width of bitmap. */
273 int height; /* Height of bitmap. */
285 Tcl_AppendResult(interp, "bitmap \"", name,
303 * Given a bitmap, return a textual string identifying the
304 * bitmap.
307 * The return value is the string name associated with bitmap.
316 Tk_NameOfBitmap(display, bitmap)
317 Display *display; /* Display for which bitmap was
319 Pixmap bitmap; /* Bitmap whose name is wanted. */
328 panic("Tk_NameOfBitmap received unknown bitmap argument");
332 idKey.pixmap = bitmap;
348 * Given a bitmap managed by this module, returns the width
349 * and height of the bitmap.
353 * the dimenstions of bitmap.
356 * If bitmap isn't managed by this module then the procedure
363 Tk_SizeOfBitmap(display, bitmap, widthPtr, heightPtr)
364 Display *display; /* Display for which bitmap was
366 Pixmap bitmap; /* Bitmap whose size is wanted. */
367 int *widthPtr; /* Store bitmap width here. */
368 int *heightPtr; /* Store bitmap height here. */
376 panic("Tk_SizeOfBitmap received unknown bitmap argument");
380 idKey.pixmap = bitmap;
396 * This procedure is called to release a bitmap allocated by
403 * The reference count associated with bitmap is decremented, and
410 Tk_FreeBitmap(display, bitmap)
411 Display *display; /* Display for which bitmap was
413 Pixmap bitmap; /* Bitmap to be released. */
424 idKey.pixmap = bitmap;
427 panic("Tk_FreeBitmap received unknown bitmap argument");
432 Tk_FreePixmap(bitmapPtr->display, bitmapPtr->bitmap);
445 * Given a description of the bits for a bitmap, make a bitmap that
450 * The return value is the X identifer for the desired bitmap
453 * interp->result. The caller should never modify the bitmap that
455 * bitmap is no longer needed.
458 * The bitmap is added to an internal database with a reference count.
470 Tk_Window tkwin; /* Window in which bitmap will be used. */
471 char *source; /* Bitmap data for bitmap shape. */
472 int width, height; /* Dimensions of bitmap. */
511 * Initialize the structures used for bitmap management.