diff options
| author | Eli Zaretskii | 1998-04-27 14:15:07 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 1998-04-27 14:15:07 +0000 |
| commit | bd5197a45bf407d010ae7699ce90eb7b090e136c (patch) | |
| tree | e304921f8de828318781485af1625bcc0385a0aa /src/msdos.h | |
| parent | a0613c61ed1c474ee4e26a41cbb8915dd7a0d1c3 (diff) | |
| download | emacs-bd5197a45bf407d010ae7699ce90eb7b090e136c.tar.gz emacs-bd5197a45bf407d010ae7699ce90eb7b090e136c.zip | |
[!HAVE_X_WINDOWS]: Add a dummy typedef for XRectangle
and prototypes for external functions.
Diffstat (limited to 'src/msdos.h')
| -rw-r--r-- | src/msdos.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/msdos.h b/src/msdos.h index 3e3c6ec0695..5bf15c4f6cc 100644 --- a/src/msdos.h +++ b/src/msdos.h | |||
| @@ -51,6 +51,7 @@ typedef int GC; | |||
| 51 | typedef int Pixmap; | 51 | typedef int Pixmap; |
| 52 | typedef int Display; | 52 | typedef int Display; |
| 53 | typedef int Window; | 53 | typedef int Window; |
| 54 | typedef int XRectangle; | ||
| 54 | #define PIX_TYPE int | 55 | #define PIX_TYPE int |
| 55 | #define XDISPLAY | 56 | #define XDISPLAY |
| 56 | 57 | ||
| @@ -87,6 +88,42 @@ extern Display *x_current_display; | |||
| 87 | #define FRAME_BACKGROUND_PIXEL(f) (the_only_x_display.background_pixel) | 88 | #define FRAME_BACKGROUND_PIXEL(f) (the_only_x_display.background_pixel) |
| 88 | #define FRAME_FONT(f) (the_only_x_display.font) | 89 | #define FRAME_FONT(f) (the_only_x_display.font) |
| 89 | 90 | ||
| 91 | /* Prototypes. */ | ||
| 92 | |||
| 93 | /* Forward declarations for prototypes. */ | ||
| 94 | struct frame; | ||
| 95 | struct window; | ||
| 96 | extern void init_frame_faces P_ ((struct frame *)); | ||
| 97 | extern void free_frame_faces P_ ((struct frame *)); | ||
| 98 | extern struct face *intern_face P_ ((struct frame *, struct face *)); | ||
| 99 | extern int face_name_id_number P_ ((struct frame *, Lisp_Object)); | ||
| 100 | extern void recompute_basic_faces P_ ((struct frame *)); | ||
| 101 | extern int compute_char_face P_ ((struct frame *frame, | ||
| 102 | struct window *w, | ||
| 103 | int pos, | ||
| 104 | int region_beg, int region_end, | ||
| 105 | int *endptr, | ||
| 106 | int limit, int mouse)); | ||
| 107 | extern int compute_glyph_face P_ ((struct frame *, int, int)); | ||
| 108 | extern void pixel_to_glyph_coords P_ ((struct frame *f, int pix_x, int pix_y, | ||
| 109 | int *x, int *y, XRectangle *bounds, | ||
| 110 | int noclip)); | ||
| 111 | extern void glyph_to_pixel_coords P_ ((struct frame *f, int x, int y, | ||
| 112 | int *pix_x, int *pix_y)); | ||
| 113 | |||
| 114 | /* Defined in xfns.c */ | ||
| 115 | |||
| 116 | extern int have_menus_p P_ ((void)); | ||
| 117 | extern void x_set_menu_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object)); | ||
| 118 | extern int x_pixel_width P_ ((struct frame *)); | ||
| 119 | extern int x_pixel_height P_ ((struct frame *)); | ||
| 120 | |||
| 121 | /* Defined in xfaces.c */ | ||
| 122 | extern void clear_face_cache P_ ((void)); | ||
| 123 | extern int compute_glyph_face P_ ((struct frame *, int, int)); | ||
| 124 | extern int compute_glyph_face_1 P_ ((struct frame *, Lisp_Object, int)); | ||
| 125 | |||
| 126 | |||
| 90 | #define XFreeGC (void) | 127 | #define XFreeGC (void) |
| 91 | #define same_size_fonts(foo,bar) (1) | 128 | #define same_size_fonts(foo,bar) (1) |
| 92 | #define unload_font(p1,p2) | 129 | #define unload_font(p1,p2) |