aboutsummaryrefslogtreecommitdiffstats
path: root/src/macterm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/macterm.h')
-rw-r--r--src/macterm.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/macterm.h b/src/macterm.h
index ea5f7db6084..948fa486aba 100644
--- a/src/macterm.h
+++ b/src/macterm.h
@@ -1,5 +1,6 @@
1/* Display module for Mac OS. 1/* Display module for Mac OS.
2 Copyright (C) 2000, 2001 Free Software Foundation, Inc. 2 Copyright (C) 2000, 2001, 2002, 2003, 2004,
3 2005 Free Software Foundation, Inc.
3 4
4This file is part of GNU Emacs. 5This file is part of GNU Emacs.
5 6
@@ -38,11 +39,6 @@ Boston, MA 02110-1301, USA. */
38#define BLACK_PIX_DEFAULT(f) RGB_TO_ULONG(0,0,0) 39#define BLACK_PIX_DEFAULT(f) RGB_TO_ULONG(0,0,0)
39#define WHITE_PIX_DEFAULT(f) RGB_TO_ULONG(255,255,255) 40#define WHITE_PIX_DEFAULT(f) RGB_TO_ULONG(255,255,255)
40 41
41/* A black pixel in a mask bitmap/pixmap means ``draw a source
42 pixel''. A white pixel means ``retain the current pixel''. */
43#define PIX_MASK_DRAW(f) BLACK_PIX_DEFAULT(f)
44#define PIX_MASK_RETAIN(f) WHITE_PIX_DEFAULT(f)
45
46#define FONT_WIDTH(f) ((f)->max_bounds.width) 42#define FONT_WIDTH(f) ((f)->max_bounds.width)
47#define FONT_HEIGHT(f) ((f)->ascent + (f)->descent) 43#define FONT_HEIGHT(f) ((f)->ascent + (f)->descent)
48#define FONT_BASE(f) ((f)->ascent) 44#define FONT_BASE(f) ((f)->ascent)
@@ -149,7 +145,7 @@ struct mac_display_info
149 int smallest_font_height; 145 int smallest_font_height;
150 146
151 /* Reusable Graphics Context for drawing a cursor in a non-default face. */ 147 /* Reusable Graphics Context for drawing a cursor in a non-default face. */
152 XGCValues *scratch_cursor_gc; 148 GC scratch_cursor_gc;
153 149
154 /* These variables describe the range of text currently shown in its 150 /* These variables describe the range of text currently shown in its
155 mouse-face, together with the window they apply to. As long as 151 mouse-face, together with the window they apply to. As long as
@@ -388,7 +384,7 @@ struct mac_output {
388 /* Relief GCs, colors etc. */ 384 /* Relief GCs, colors etc. */
389 struct relief 385 struct relief
390 { 386 {
391 XGCValues *gc; 387 GC gc;
392 unsigned long pixel; 388 unsigned long pixel;
393 int allocated_p; 389 int allocated_p;
394 } 390 }
@@ -598,6 +594,8 @@ EXFUN (Fx_display_color_p, 1);
598EXFUN (Fx_display_grayscale_p, 1); 594EXFUN (Fx_display_grayscale_p, 1);
599EXFUN (Fx_display_planes, 1); 595EXFUN (Fx_display_planes, 1);
600extern void x_free_gcs P_ ((struct frame *)); 596extern void x_free_gcs P_ ((struct frame *));
597extern int XParseGeometry P_ ((char *, int *, int *, unsigned int *,
598 unsigned int *));
601 599
602/* Defined in macterm.c. */ 600/* Defined in macterm.c. */
603 601
@@ -611,6 +609,7 @@ extern Pixmap XCreatePixmapFromBitmapData P_ ((Display *, WindowPtr, char *,
611 unsigned long, unsigned long, 609 unsigned long, unsigned long,
612 unsigned int)); 610 unsigned int));
613extern void XFreePixmap P_ ((Display *, Pixmap)); 611extern void XFreePixmap P_ ((Display *, Pixmap));
612extern GC XCreateGC P_ ((Display *, Window, unsigned long, XGCValues *));
614extern void XSetForeground P_ ((Display *, GC, unsigned long)); 613extern void XSetForeground P_ ((Display *, GC, unsigned long));
615extern void XSetBackground P_ ((Display *, GC, unsigned long)); 614extern void XSetBackground P_ ((Display *, GC, unsigned long));
616extern void XSetWindowBackground P_ ((Display *, WindowPtr, unsigned long)); 615extern void XSetWindowBackground P_ ((Display *, WindowPtr, unsigned long));