/[emacs]/emacs/src/w32term.h
ViewVC logotype

Diff of /emacs/src/w32term.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.36 by jasonr, Sat Oct 27 22:07:59 2001 UTC revision 1.37 by kfstorm, Fri Nov 16 13:06:52 2001 UTC
# Line 385  struct w32_output Line 385  struct w32_output
385    /* The extra width currently allotted for the areas in which    /* The extra width currently allotted for the areas in which
386       truncation marks, continuation marks, and overlay arrows are       truncation marks, continuation marks, and overlay arrows are
387       displayed.  */       displayed.  */
388    int flags_areas_extra;    int fringes_extra;
389    
390    /* This is the gravity value for the specified window position.  */    /* This is the gravity value for the specified window position.  */
391    int win_gravity;    int win_gravity;
# Line 468  extern struct w32_output w32term_display Line 468  extern struct w32_output w32term_display
468  #define FRAME_X_IMAGE_CACHE(F) FRAME_W32_DISPLAY_INFO ((F))->image_cache  #define FRAME_X_IMAGE_CACHE(F) FRAME_W32_DISPLAY_INFO ((F))->image_cache
469    
470    
471  /* Pixel width of the bitmaps drawn to indicate truncation,  /* Pixel width of the fringe bitmaps drawn to indicate truncation,
472     continuation etc.  */     continuation etc.  */
473    
474  #define FRAME_FLAGS_BITMAP_WIDTH(f)     8  #define FRAME_FRINGE_BITMAP_WIDTH(f)    8
475  #define FRAME_FLAGS_BITMAP_HEIGHT(f)    8  #define FRAME_FRINGE_BITMAP_HEIGHT(f)   8
476    
477  /* Total width of areas reserved for drawing truncation bitmaps,  /* Total width of fringes reserved for drawing truncation bitmaps,
478     continuation bitmaps and alike.  The width is in canonical char     continuation bitmaps and alike.  The width is in canonical char
479     units of the frame.  This must currently be the case because window     units of the frame.  This must currently be the case because window
480     sizes aren't pixel values.  If it weren't the case, we wouldn't be     sizes aren't pixel values.  If it weren't the case, we wouldn't be
481     able to split windows horizontally nicely.  */     able to split windows horizontally nicely.  */
482    
483  #define FRAME_X_FLAGS_AREA_COLS(F)                              \  #define FRAME_X_FRINGE_COLS(F)                          \
484       ((2 * FRAME_FLAGS_BITMAP_WIDTH ((F)) + CANON_X_UNIT ((F)) - 1)     \       ((2 * FRAME_FRINGE_BITMAP_WIDTH ((F)) + CANON_X_UNIT ((F)) - 1)    \
485        / CANON_X_UNIT ((F)))        / CANON_X_UNIT ((F)))
486    
487  /* Total width of flags areas in pixels.  */  /* Total width of fringes in pixels.  */
488    
489  #define FRAME_X_FLAGS_AREA_WIDTH(F) \  #define FRAME_X_FRINGE_WIDTH(F) \
490       (FRAME_X_FLAGS_AREA_COLS ((F)) * CANON_X_UNIT ((F)))       (FRAME_X_FRINGE_COLS ((F)) * CANON_X_UNIT ((F)))
491    
492  /* Pixel-width of the left flags area.  */  /* Pixel-width of the left fringe.  */
493    
494  #define FRAME_X_LEFT_FLAGS_AREA_WIDTH(F) \  #define FRAME_X_LEFT_FRINGE_WIDTH(F) \
495       (FRAME_X_FLAGS_AREA_WIDTH (F) / 2)       (FRAME_X_FRINGE_WIDTH (F) / 2)
496    
497  /* Pixel-width of the right flags area.  Note that we are doing  /* Pixel-width of the right fringe.  Note that we are doing
498     integer arithmetic here, so don't loose a pixel if the total     integer arithmetic here, so don't loose a pixel if the total
499     width is an odd number.  */     width is an odd number.  */
500    
501  #define FRAME_X_RIGHT_FLAGS_AREA_WIDTH(F)       \  #define FRAME_X_RIGHT_FRINGE_WIDTH(F)   \
502       (FRAME_X_FLAGS_AREA_WIDTH (F) - FRAME_X_FLAGS_AREA_WIDTH (F) / 2)       (FRAME_X_FRINGE_WIDTH (F) - FRAME_X_FRINGE_WIDTH (F) / 2)
503    
504    
505    
# Line 657  struct scroll_bar { Line 657  struct scroll_bar {
657  #define CHAR_TO_PIXEL_WIDTH(f, width) \  #define CHAR_TO_PIXEL_WIDTH(f, width) \
658    (CHAR_TO_PIXEL_COL (f, width) \    (CHAR_TO_PIXEL_COL (f, width) \
659     + (f)->output_data.w32->vertical_scroll_bar_extra \     + (f)->output_data.w32->vertical_scroll_bar_extra \
660     + (f)->output_data.w32->flags_areas_extra \     + (f)->output_data.w32->fringes_extra \
661     + (f)->output_data.w32->internal_border_width)     + (f)->output_data.w32->internal_border_width)
662  #define CHAR_TO_PIXEL_HEIGHT(f, height) \  #define CHAR_TO_PIXEL_HEIGHT(f, height) \
663    (CHAR_TO_PIXEL_ROW (f, height) \    (CHAR_TO_PIXEL_ROW (f, height) \
# Line 678  struct scroll_bar { Line 678  struct scroll_bar {
678  #define PIXEL_TO_CHAR_WIDTH(f, width) \  #define PIXEL_TO_CHAR_WIDTH(f, width) \
679    (PIXEL_TO_CHAR_COL (f, ((width) \    (PIXEL_TO_CHAR_COL (f, ((width) \
680                            - (f)->output_data.w32->internal_border_width \                            - (f)->output_data.w32->internal_border_width \
681                            - (f)->output_data.w32->flags_areas_extra \                            - (f)->output_data.w32->fringes_extra \
682                            - (f)->output_data.w32->vertical_scroll_bar_extra)))                            - (f)->output_data.w32->vertical_scroll_bar_extra)))
683  #define PIXEL_TO_CHAR_HEIGHT(f, height) \  #define PIXEL_TO_CHAR_HEIGHT(f, height) \
684    (PIXEL_TO_CHAR_ROW (f, ((height) \    (PIXEL_TO_CHAR_ROW (f, ((height) \

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26