]> git.eshelyaron.com Git - emacs.git/commitdiff
(struct x_display_info): Add color_cells and ncolor_cells.
authorGerd Moellmann <gerd@gnu.org>
Wed, 18 Oct 2000 11:58:27 +0000 (11:58 +0000)
committerGerd Moellmann <gerd@gnu.org>
Wed, 18 Oct 2000 11:58:27 +0000 (11:58 +0000)
(x_query_color, x_query_colors): Add prototype.

src/xterm.h

index c33655e36272b33a050476589a7c3b171f3c5ca2..aaf14700ac3b78a50544530e568e4a77170b12f8 100644 (file)
@@ -339,6 +339,11 @@ struct x_display_info
   XIM xim;
   XIMStyles *xim_styles;
 #endif
+
+  /* If non-null, a cache of the colors in the color map.  Don't
+     use this directly, call x_color_cells instead.  */
+  XColor *color_cells;
+  int ncolor_cells;
 };
 
 /* This checks to make sure we have a display.  */
@@ -978,6 +983,8 @@ extern unsigned long x_copy_color P_ ((struct frame *, unsigned long));
 #ifdef USE_X_TOOLKIT
 extern XtAppContext Xt_app_con;
 #endif
+extern void x_query_colors P_ ((struct frame *f, XColor *, int));
+extern void x_query_color P_ ((struct frame *f, XColor *));
 
 /* Defined in xselect.c */