comparison src/w32term.h @ 43395:5cae2fbac146

New enum for FULLSCREEN_* constants. (struct w32_output): New members want_fullscreen, x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff. (x-fullscreen-adjust): New prototype.
author Jason Rumney <jasonr@gnu.org>
date Sun, 17 Feb 2002 23:41:06 +0000
parents e1a8a3f02251
children 1e76e5ebe710
comparison
equal deleted inserted replaced
43394:bf151fa5d915 43395:5cae2fbac146
424 black_relief, white_relief; 424 black_relief, white_relief;
425 425
426 /* The background for which the above relief GCs were set up. 426 /* The background for which the above relief GCs were set up.
427 They are changed only when a different background is involved. */ 427 They are changed only when a different background is involved. */
428 unsigned long relief_background; 428 unsigned long relief_background;
429
430 /* See enum below */
431 int want_fullscreen;
432
433 /* This many pixels are the difference between the outer window (i.e. the
434 left of the window manager decoration) and FRAME_W32_WINDOW. */
435 int x_pixels_diff;
436
437 /* This many pixels are the difference between the outer window (i.e. the
438 top of the window manager titlebar) and FRAME_W32_WINDOW. */
439 int y_pixels_diff;
429 }; 440 };
430 441
431 extern struct w32_output w32term_display; 442 extern struct w32_output w32term_display;
443
444 enum
445 {
446 /* Values used as a bit mask, BOTH == WIDTH | HEIGHT. */
447 FULLSCREEN_NONE = 0,
448 FULLSCREEN_WIDTH = 1,
449 FULLSCREEN_HEIGHT = 2,
450 FULLSCREEN_BOTH = 3,
451 FULLSCREEN_WAIT = 4,
452 FULLSCREEN_MOVE_WAIT = 8,
453 };
432 454
433 /* Return the window associated with the frame F. */ 455 /* Return the window associated with the frame F. */
434 #define FRAME_W32_WINDOW(f) ((f)->output_data.w32->window_desc) 456 #define FRAME_W32_WINDOW(f) ((f)->output_data.w32->window_desc)
435 457
436 #define FRAME_FOREGROUND_PIXEL(f) ((f)->output_data.x->foreground_pixel) 458 #define FRAME_FOREGROUND_PIXEL(f) ((f)->output_data.x->foreground_pixel)
692 #define w32_clear_area(f,hdc,px,py,nx,ny) \ 714 #define w32_clear_area(f,hdc,px,py,nx,ny) \
693 w32_fill_area (f,hdc,f->output_data.x->background_pixel,px,py,nx,ny) 715 w32_fill_area (f,hdc,f->output_data.x->background_pixel,px,py,nx,ny)
694 716
695 extern struct font_info *w32_load_font (); 717 extern struct font_info *w32_load_font ();
696 extern void w32_unload_font (); 718 extern void w32_unload_font ();
719
720 extern void x_fullscreen_adjust P_ ((struct frame *f, int *, int *,
721 int *, int *));
697 722
698 /* Define for earlier versions of Visual C */ 723 /* Define for earlier versions of Visual C */
699 #ifndef WM_MOUSEWHEEL 724 #ifndef WM_MOUSEWHEEL
700 #define WM_MOUSEWHEEL (WM_MOUSELAST + 1) 725 #define WM_MOUSEWHEEL (WM_MOUSELAST + 1)
701 #endif /* WM_MOUSEWHEEL */ 726 #endif /* WM_MOUSEWHEEL */