Mercurial > hg > xemacs-beta
comparison src/glyphs-gtk.h @ 2082:16489ca72b3d
[xemacs-hg @ 2004-05-15 07:43:05 by malcolmp]
Improvements to the rendering of GTK glyph backgrounds.
author | malcolmp |
---|---|
date | Sat, 15 May 2004 07:43:09 +0000 |
parents | 0784d089fdc9 |
children | dbd2a866e38a |
comparison
equal
deleted
inserted
replaced
2081:e8db6a10ad42 | 2082:16489ca72b3d |
---|---|
38 ****************************************************************************/ | 38 ****************************************************************************/ |
39 | 39 |
40 struct gtk_image_instance_data | 40 struct gtk_image_instance_data |
41 { | 41 { |
42 GdkPixmap **pixmaps; | 42 GdkPixmap **pixmaps; |
43 GdkPixmap *mask; | |
44 GdkCursor *cursor; | 43 GdkCursor *cursor; |
45 | 44 |
46 /* If depth>0, then that means that other colors were allocated when | 45 /* If depth>0, then that means that other colors were allocated when |
47 this pixmap was loaded. These are they; we need to free them when | 46 this pixmap was loaded. These are they; we need to free them when |
48 finalizing the image instance. */ | 47 finalizing the image instance. */ |
85 #define IMAGE_INSTANCE_GTK_PIXMAP(i) (GTK_IMAGE_INSTANCE_DATA (i)->pixmaps[0]) | 84 #define IMAGE_INSTANCE_GTK_PIXMAP(i) (GTK_IMAGE_INSTANCE_DATA (i)->pixmaps[0]) |
86 #define IMAGE_INSTANCE_GTK_PIXMAP_SLICE(i,slice) \ | 85 #define IMAGE_INSTANCE_GTK_PIXMAP_SLICE(i,slice) \ |
87 (GTK_IMAGE_INSTANCE_DATA (i)->pixmaps[slice]) | 86 (GTK_IMAGE_INSTANCE_DATA (i)->pixmaps[slice]) |
88 #define IMAGE_INSTANCE_GTK_PIXMAP_SLICES(i) \ | 87 #define IMAGE_INSTANCE_GTK_PIXMAP_SLICES(i) \ |
89 (GTK_IMAGE_INSTANCE_DATA (i)->pixmaps) | 88 (GTK_IMAGE_INSTANCE_DATA (i)->pixmaps) |
90 #define IMAGE_INSTANCE_GTK_MASK(i) (GTK_IMAGE_INSTANCE_DATA (i)->mask) | 89 #define IMAGE_INSTANCE_GTK_MASK(i) (GdkPixmap*)(IMAGE_INSTANCE_PIXMAP_MASK (i)) |
91 #define IMAGE_INSTANCE_GTK_CURSOR(i) (GTK_IMAGE_INSTANCE_DATA (i)->cursor) | 90 #define IMAGE_INSTANCE_GTK_CURSOR(i) (GTK_IMAGE_INSTANCE_DATA (i)->cursor) |
92 #define IMAGE_INSTANCE_GTK_COLORMAP(i) (GTK_IMAGE_INSTANCE_DATA (i)->colormap) | 91 #define IMAGE_INSTANCE_GTK_COLORMAP(i) (GTK_IMAGE_INSTANCE_DATA (i)->colormap) |
93 #define IMAGE_INSTANCE_GTK_PIXELS(i) (GTK_IMAGE_INSTANCE_DATA (i)->pixels) | 92 #define IMAGE_INSTANCE_GTK_PIXELS(i) (GTK_IMAGE_INSTANCE_DATA (i)->pixels) |
94 #define IMAGE_INSTANCE_GTK_NPIXELS(i) (GTK_IMAGE_INSTANCE_DATA (i)->npixels) | 93 #define IMAGE_INSTANCE_GTK_NPIXELS(i) (GTK_IMAGE_INSTANCE_DATA (i)->npixels) |
95 | 94 |