Mercurial > hg > xemacs-beta
comparison src/objects-x.h @ 219:262b8bb4a523 r20-4b8
Import from CVS: tag r20-4b8
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:09:35 +0200 |
parents | 376386a54a3c |
children | 74fd4e045ea6 |
comparison
equal
deleted
inserted
replaced
218:c9f226976f56 | 219:262b8bb4a523 |
---|---|
34 ****************************************************************************/ | 34 ****************************************************************************/ |
35 | 35 |
36 struct x_color_instance_data | 36 struct x_color_instance_data |
37 { | 37 { |
38 XColor color; | 38 XColor color; |
39 char dealloc_on_gc; | |
39 }; | 40 }; |
40 | 41 |
41 #define X_COLOR_INSTANCE_DATA(c) ((struct x_color_instance_data *) (c)->data) | 42 #define X_COLOR_INSTANCE_DATA(c) ((struct x_color_instance_data *) (c)->data) |
42 #define COLOR_INSTANCE_X_COLOR(c) (X_COLOR_INSTANCE_DATA (c)->color) | 43 #define COLOR_INSTANCE_X_COLOR(c) (X_COLOR_INSTANCE_DATA (c)->color) |
44 #define COLOR_INSTANCE_X_DEALLOC(c) (X_COLOR_INSTANCE_DATA (c)->dealloc_on_gc) | |
43 | 45 |
44 int allocate_nearest_color (Display *display, Colormap screen_colormap, | 46 int allocate_nearest_color (Display *display, Colormap screen_colormap, Visual *visual, |
45 XColor *color_def); | 47 XColor *color_def); |
46 int x_parse_nearest_color (struct device *d, XColor *color, Bufbyte *name, | 48 int x_parse_nearest_color (struct device *d, XColor *color, Bufbyte *name, |
47 Bytecount len, Error_behavior errb); | 49 Bytecount len, Error_behavior errb); |
48 | 50 |
49 /***************************************************************************** | 51 /***************************************************************************** |