Lines Matching defs:bitmap

4  *	This file implements bitmap items for canvas widgets.
19 * The structure below defines the record for each bitmap item.
26 * bitmap. */
27 Tk_Anchor anchor; /* Where to anchor bitmap relative to
29 Pixmap bitmap; /* Bitmap to display in window. */
30 XColor *fgColor; /* Foreground color to use for bitmap. */
31 XColor *bgColor; /* Background color to use for bitmap. */
33 * bitmap on screen. */
49 {TK_CONFIG_BITMAP, "-bitmap", (char *) NULL, (char *) NULL,
50 (char *) NULL, Tk_Offset(BitmapItem, bitmap), TK_CONFIG_NULL_OK},
92 * The structures below defines the bitmap item type in terms of
97 "bitmap", /* name */
125 * This procedure is invoked to create a new bitmap
135 * A new bitmap item is created.
164 bmapPtr->bitmap = None;
193 * command on bitmap items. See the user documentation for
245 * of a bitmap item, such as its anchor position.
289 gcValues.clip_mask = bmapPtr->bitmap;
310 * associated with a bitmap item.
330 if (bmapPtr->bitmap != None) {
331 Tk_FreeBitmap(display, bmapPtr->bitmap);
351 * all the pixels that may be drawn as part of a bitmap item.
352 * This procedure is where the child bitmap's placement is
378 if (bmapPtr->bitmap == None) {
385 * Compute location and size of bitmap, using anchor information.
388 Tk_SizeOfBitmap(Tk_Display(Tk_CanvasTkwin(canvas)), bmapPtr->bitmap,
439 * This procedure is invoked to draw a bitmap item in a given
467 * If the area being displayed doesn't cover the whole bitmap,
468 * then only redisplay the part of the bitmap that needs
472 if (bmapPtr->bitmap != None) {
502 * to line up with the bitmap's origin (in order to make
508 XCopyPlane(display, bmapPtr->bitmap, drawable,
525 * are coordPtr[0] and coordPtr[1] is inside the bitmap. If the
526 * point isn't inside the bitmap then the return value is the
527 * distance from the point to the bitmap.
626 * This procedure is invoked to rescale a bitmap item in a
628 * bitmap items, and is invoked by the generic canvas code.
697 * bitmap items.
729 if (bmapPtr->bitmap == None) {
734 * Compute the coordinates of the lower-left corner of the bitmap,
740 Tk_SizeOfBitmap(Tk_Display(Tk_CanvasTkwin(canvas)), bmapPtr->bitmap,
770 * Draw the bitmap, if there is a foreground color. If the bitmap
801 if (Tk_CanvasPsBitmap(interp, canvas, bmapPtr->bitmap,