aboutsummaryrefslogtreecommitdiffstats
path: root/src/termhooks.h
diff options
context:
space:
mode:
authorAlexander Gramiak2019-05-09 13:07:35 -0600
committerAlexander Gramiak2019-05-19 19:50:32 -0600
commitc0e146e4ec266edf348473c3db7ca8d16745f4f7 (patch)
tree3f2070ccbf941ba14f43836f7cfa1b4c78979043 /src/termhooks.h
parent05b79539f4d22bfe5160777aa5a963aeb74b000c (diff)
downloademacs-c0e146e4ec266edf348473c3db7ca8d16745f4f7.tar.gz
emacs-c0e146e4ec266edf348473c3db7ca8d16745f4f7.zip
Introduce Emacs_Color struct and typedef
This avoids clashing with the XColor struct from X. * src/dispextern [HAVE_X_WINDOWS]: Define Emacs_Color alias. [!HAVE_X_WINDOWS]: Rename XColor compatibility struct to Emacs_Color. Remove unused fields. * src/gtkutil.c: * src/gtkutil.h: * src/image.c: * src/nsterm.h: * src/nsterm.m: * src/termhooks.h: * src/w32fns.c: * src/w32term.c: * src/w32term.h: * src/xfaces.c: * src/xfns.c: * src/xterm.h: Use Emacs_Color over XColor outside of X-specific sections.
Diffstat (limited to 'src/termhooks.h')
-rw-r--r--src/termhooks.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/termhooks.h b/src/termhooks.h
index 0962add0817..410273875a6 100644
--- a/src/termhooks.h
+++ b/src/termhooks.h
@@ -496,7 +496,7 @@ struct terminal
496 496
497 If MAKEINDEX (on NS), set COLOR_DEF pixel to ARGB. */ 497 If MAKEINDEX (on NS), set COLOR_DEF pixel to ARGB. */
498 bool (*defined_color_hook) (struct frame *f, const char *color_name, 498 bool (*defined_color_hook) (struct frame *f, const char *color_name,
499 XColor *color_def, 499 Emacs_Color *color_def,
500 bool alloc, 500 bool alloc,
501 bool makeIndex); 501 bool makeIndex);
502 502
@@ -515,13 +515,13 @@ struct terminal
515 515
516 /* This hook is called to store the frame's background color into 516 /* This hook is called to store the frame's background color into
517 BGCOLOR. */ 517 BGCOLOR. */
518 void (*query_frame_background_color) (struct frame *f, XColor *bgcolor); 518 void (*query_frame_background_color) (struct frame *f, Emacs_Color *bgcolor);
519 519
520#if defined (HAVE_X_WINDOWS) || defined (HAVE_NTGUI) 520#if defined (HAVE_X_WINDOWS) || defined (HAVE_NTGUI)
521 /* On frame F, translate pixel colors to RGB values for the NCOLORS 521 /* On frame F, translate pixel colors to RGB values for the NCOLORS
522 colors in COLORS. Use cached information, if available. */ 522 colors in COLORS. Use cached information, if available. */
523 523
524 void (*query_colors) (struct frame *f, XColor *colors, int ncolors); 524 void (*query_colors) (struct frame *f, Emacs_Color *colors, int ncolors);
525#endif 525#endif
526 /* Return the current position of the mouse. 526 /* Return the current position of the mouse.
527 527