diff options
| author | Kenichi Handa | 2006-06-06 03:51:57 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2006-06-06 03:51:57 +0000 |
| commit | adf494ff8d1d9271b5f60872a540528bd03343ab (patch) | |
| tree | f483aaa53362da76ac5a83f3a92f8a1694135f3d /src | |
| parent | 8aa07a8dcccb408b9e7560ba1be254dea946ce5d (diff) | |
| download | emacs-adf494ff8d1d9271b5f60872a540528bd03343ab.tar.gz emacs-adf494ff8d1d9271b5f60872a540528bd03343ab.zip | |
(struct frame): New members resx and resy.
(struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
(x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
Diffstat (limited to 'src')
| -rw-r--r-- | src/frame.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/frame.h b/src/frame.h index a77e49ace73..ce6ceebf02a 100644 --- a/src/frame.h +++ b/src/frame.h | |||
| @@ -93,6 +93,10 @@ extern struct x_output tty_display; | |||
| 93 | 93 | ||
| 94 | #endif /* ! MSDOS && ! WINDOWSNT && ! MAC_OS */ | 94 | #endif /* ! MSDOS && ! WINDOWSNT && ! MAC_OS */ |
| 95 | 95 | ||
| 96 | #ifdef USE_FONT_BACKEND | ||
| 97 | struct font_driver_list; | ||
| 98 | #endif /* USE_FONT_BACKEND */ | ||
| 99 | |||
| 96 | struct frame | 100 | struct frame |
| 97 | { | 101 | { |
| 98 | EMACS_INT size; | 102 | EMACS_INT size; |
| @@ -256,6 +260,9 @@ struct frame | |||
| 256 | /* Size of the frame window in pixels. */ | 260 | /* Size of the frame window in pixels. */ |
| 257 | int pixel_height, pixel_width; | 261 | int pixel_height, pixel_width; |
| 258 | 262 | ||
| 263 | /* Dots per inch of the screen the frame is on. */ | ||
| 264 | double resx, resy; | ||
| 265 | |||
| 259 | /* These many pixels are the difference between the outer window (i.e. the | 266 | /* These many pixels are the difference between the outer window (i.e. the |
| 260 | left and top of the window manager decoration) and FRAME_X_WINDOW. */ | 267 | left and top of the window manager decoration) and FRAME_X_WINDOW. */ |
| 261 | int x_pixels_diff, y_pixels_diff; | 268 | int x_pixels_diff, y_pixels_diff; |
| @@ -301,6 +308,11 @@ struct frame | |||
| 301 | } | 308 | } |
| 302 | output_data; | 309 | output_data; |
| 303 | 310 | ||
| 311 | #ifdef USE_FONT_BACKEND | ||
| 312 | /* List of font-drivers available on the frame. */ | ||
| 313 | struct font_driver_list *font_driver_list; | ||
| 314 | #endif /* USE_FONT_BACKEND */ | ||
| 315 | |||
| 304 | /* Total width of fringes reserved for drawing truncation bitmaps, | 316 | /* Total width of fringes reserved for drawing truncation bitmaps, |
| 305 | continuation bitmaps and alike. The width is in canonical char | 317 | continuation bitmaps and alike. The width is in canonical char |
| 306 | units of the frame. This must currently be the case because window | 318 | units of the frame. This must currently be the case because window |
| @@ -1051,7 +1063,9 @@ extern void x_wm_set_icon_position P_ ((struct frame *, int, int)); | |||
| 1051 | 1063 | ||
| 1052 | extern Lisp_Object x_new_font P_ ((struct frame *, char *)); | 1064 | extern Lisp_Object x_new_font P_ ((struct frame *, char *)); |
| 1053 | extern Lisp_Object x_new_fontset P_ ((struct frame *, Lisp_Object)); | 1065 | extern Lisp_Object x_new_fontset P_ ((struct frame *, Lisp_Object)); |
| 1054 | 1066 | #ifdef USE_FONT_BACKEND | |
| 1067 | extern Lisp_Object x_new_fontset2 P_ ((struct frame *, Lisp_Object)); | ||
| 1068 | #endif /* USE_FONT_BACKEND */ | ||
| 1055 | 1069 | ||
| 1056 | /* These are in frame.c */ | 1070 | /* These are in frame.c */ |
| 1057 | 1071 | ||