comparison src/frame.h @ 90411:508480e70e4a

(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.
author Kenichi Handa <handa@m17n.org>
date Tue, 06 Jun 2006 03:51:57 +0000
parents 5754737d1e04
children bdc1386b2827
comparison
equal deleted inserted replaced
90410:55a58b0d3d9e 90411:508480e70e4a
91 /* A structure describing a termcap frame display. */ 91 /* A structure describing a termcap frame display. */
92 extern struct x_output tty_display; 92 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;
99 struct Lisp_Vector *next; 103 struct Lisp_Vector *next;
100 104
253 /* Pixel position of the frame window (x and y offsets in root window). */ 257 /* Pixel position of the frame window (x and y offsets in root window). */
254 int left_pos, top_pos; 258 int left_pos, top_pos;
255 259
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;
262
263 /* Dots per inch of the screen the frame is on. */
264 double resx, resy;
258 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;
262 269
298 struct w32_output *w32; 305 struct w32_output *w32;
299 struct mac_output *mac; 306 struct mac_output *mac;
300 EMACS_INT nothing; 307 EMACS_INT nothing;
301 } 308 }
302 output_data; 309 output_data;
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 */
303 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
307 sizes aren't pixel values. If it weren't the case, we wouldn't be 319 sizes aren't pixel values. If it weren't the case, we wouldn't be
1049 extern void x_set_offset P_ ((struct frame *, int, int, int)); 1061 extern void x_set_offset P_ ((struct frame *, int, int, int));
1050 extern void x_wm_set_icon_position P_ ((struct frame *, int, int)); 1062 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
1058 extern Lisp_Object Vx_resource_name; 1072 extern Lisp_Object Vx_resource_name;
1059 extern Lisp_Object Vx_resource_class; 1073 extern Lisp_Object Vx_resource_class;