comparison src/xterm.h @ 7265:bca3fe63efec

(struct x_display): New field size_hint_flags. (x_mouse_grabbed): Declared.
author Richard M. Stallman <rms@gnu.org>
date Mon, 02 May 1994 00:48:12 +0000
parents b43ec2effc1d
children cd81dba38a49
comparison
equal deleted inserted replaced
7264:a701bffa0f9d 7265:bca3fe63efec
207 Zero if none. This is examined by Ffocus_frame in xfns.c */ 207 Zero if none. This is examined by Ffocus_frame in xfns.c */
208 208
209 extern struct frame *x_focus_frame; 209 extern struct frame *x_focus_frame;
210 210
211 #ifdef HAVE_X11 211 #ifdef HAVE_X11
212 /* Variables associated with the X display screen this emacs is using. */ 212 /* Variables associated with the X display screen this emacs is using. */
213 213
214 /* How many screens this X display has. */ 214 /* How many screens this X display has. */
215 extern int x_screen_count; 215 extern int x_screen_count;
216 216
217 /* The vendor supporting this X server. */ 217 /* The vendor supporting this X server. */
218 extern Lisp_Object Vx_vendor; 218 extern Lisp_Object Vx_vendor;
219 219
220 /* The vendor's release number for this X server. */ 220 /* The vendor's release number for this X server. */
221 extern int x_release; 221 extern int x_release;
222 222
223 /* Height of this X screen in pixels. */ 223 /* Height of this X screen in pixels. */
224 extern int x_screen_height; 224 extern int x_screen_height;
225 225
226 /* Height of this X screen in millimeters. */ 226 /* Height of this X screen in millimeters. */
227 extern int x_screen_height_mm; 227 extern int x_screen_height_mm;
228 228
229 /* Width of this X screen in pixels. */ 229 /* Width of this X screen in pixels. */
230 extern int x_screen_width; 230 extern int x_screen_width;
231 231
232 /* Width of this X screen in millimeters. */ 232 /* Width of this X screen in millimeters. */
233 extern int x_screen_width_mm; 233 extern int x_screen_width_mm;
234 234
235 /* Does this X screen do backing store? */ 235 /* Does this X screen do backing store? */
236 extern Lisp_Object Vx_backing_store; 236 extern Lisp_Object Vx_backing_store;
237 237
238 /* Does this X screen do save-unders? */ 238 /* Does this X screen do save-unders? */
239 extern int x_save_under; 239 extern int x_save_under;
240 240
241 /* Number of planes for this screen. */ 241 /* Number of planes for this screen. */
242 extern int x_screen_planes; 242 extern int x_screen_planes;
243 243
244 /* X Visual type of this screen. */ 244 /* X Visual type of this screen. */
245 extern Lisp_Object Vx_screen_visual; 245 extern Lisp_Object Vx_screen_visual;
246
247 /* Mask of which mouse buttons are currently held down. */
248 extern unsigned int x_mouse_grabbed;
246 249
247 #endif /* HAVE_X11 */ 250 #endif /* HAVE_X11 */
248 251
249 enum text_cursor_kinds { 252 enum text_cursor_kinds {
250 filled_box_cursor, hollow_box_cursor, bar_cursor 253 filled_box_cursor, hollow_box_cursor, bar_cursor
261 int top_pos; 264 int top_pos;
262 265
263 /* Border width of the X window as known by the X window system. */ 266 /* Border width of the X window as known by the X window system. */
264 int border_width; 267 int border_width;
265 268
266 /* Size of the X window in pixels. */ 269 /* Size of the X window in pixels. */
267 int pixel_height, pixel_width; 270 int pixel_height, pixel_width;
268 271
269 /* Height of a line, in pixels. */ 272 /* Height of a line, in pixels. */
270 int line_height; 273 int line_height;
271 274
272 #ifdef HAVE_X11 275 #ifdef HAVE_X11
273 /* The tiled border used when the mouse is out of the frame. */ 276 /* The tiled border used when the mouse is out of the frame. */
274 Pixmap border_tile; 277 Pixmap border_tile;
275 278
276 /* Here are the Graphics Contexts for the default font. */ 279 /* Here are the Graphics Contexts for the default font. */
277 GC normal_gc; /* Normal video */ 280 GC normal_gc; /* Normal video */
278 GC reverse_gc; /* Reverse video */ 281 GC reverse_gc; /* Reverse video */
279 GC cursor_gc; /* cursor drawing */ 282 GC cursor_gc; /* cursor drawing */
280 #endif /* HAVE_X11 */ 283 #endif /* HAVE_X11 */
281 284
336 /* The name that was associated with the icon, the last time 339 /* The name that was associated with the icon, the last time
337 it was refreshed. Usually the same as the name of the 340 it was refreshed. Usually the same as the name of the
338 buffer in the currently selected window in the frame */ 341 buffer in the currently selected window in the frame */
339 char *icon_label; 342 char *icon_label;
340 343
341 /* Flag to set when the X window needs to be completely repainted. */ 344 /* Flag to set when the X window needs to be completely repainted. */
342 int needs_exposure; 345 int needs_exposure;
343 346
344 /* What kind of text cursor is drawn in this window right now? 347 /* What kind of text cursor is drawn in this window right now?
345 (If there is no cursor (phys_cursor_x < 0), then this means nothing.) */ 348 (If there is no cursor (phys_cursor_x < 0), then this means nothing.) */
346 enum text_cursor_kinds current_cursor; 349 enum text_cursor_kinds current_cursor;
381 int n_computed_faces; /* How many are valid */ 384 int n_computed_faces; /* How many are valid */
382 int size_computed_faces; /* How many are allocated */ 385 int size_computed_faces; /* How many are allocated */
383 386
384 /* This is the gravity value for the specified window position. */ 387 /* This is the gravity value for the specified window position. */
385 int win_gravity; 388 int win_gravity;
389
390 /* The geometry flags for this window. */
391 int size_hint_flags;
386 }; 392 };
387 393
388 /* Get at the computed faces of an X window frame. */ 394 /* Get at the computed faces of an X window frame. */
389 #define FRAME_PARAM_FACES(f) ((f)->display.x->param_faces) 395 #define FRAME_PARAM_FACES(f) ((f)->display.x->param_faces)
390 #define FRAME_N_PARAM_FACES(f) ((f)->display.x->n_param_faces) 396 #define FRAME_N_PARAM_FACES(f) ((f)->display.x->n_param_faces)
413 1) the unhighlighted foreground color, 419 1) the unhighlighted foreground color,
414 2) the unhighlighted background color. 420 2) the unhighlighted background color.
415 For highlighting, the two colors are exchanged. 421 For highlighting, the two colors are exchanged.
416 Face number 0 is unused. The low order byte of a glyph gives 422 Face number 0 is unused. The low order byte of a glyph gives
417 the character within the font. All fonts are assumed to be 423 the character within the font. All fonts are assumed to be
418 fixed width, and to have the same height and width. */ 424 fixed width, and to have the same height and width. */
419 425
420 #ifdef HAVE_X11 426 #ifdef HAVE_X11
421 427
422 /* Face declared in dispextern.h */ 428 /* Face declared in dispextern.h */
423 429
424 #else /* X10 */ 430 #else /* X10 */
425 431
426 struct face 432 struct face
427 { 433 {
428 FONT_TYPE *font; /* Font info for specified font. */ 434 FONT_TYPE *font; /* Font info for specified font. */
429 int fg; /* Unhighlighted foreground. */ 435 int fg; /* Unhighlighted foreground. */
430 int bg; /* Unhighlighted background. */ 436 int bg; /* Unhighlighted background. */
431 }; 437 };
432 #endif /* X10 */ 438 #endif /* X10 */
433 439
434 #define MAX_FACES_AND_GLYPHS 256 440 #define MAX_FACES_AND_GLYPHS 256
435 extern struct face *x_face_table[]; 441 extern struct face *x_face_table[];