/[emacs]/emacs/mac/inc/macterm.h
ViewVC logotype

Diff of /emacs/mac/inc/macterm.h

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

revision 1.3 by akochoi, Thu Jul 26 02:35:08 2001 UTC revision 1.4 by kfstorm, Fri Nov 16 13:19:19 2001 UTC
# Line 358  struct mac_output { Line 358  struct mac_output {
358    /* The extra width currently allotted for the areas in which    /* The extra width currently allotted for the areas in which
359       truncation marks, continuation marks, and overlay arrows are       truncation marks, continuation marks, and overlay arrows are
360       displayed.  */       displayed.  */
361    int flags_areas_extra;    int fringes_extra;
362    
363    /* This is the gravity value for the specified window position.  */    /* This is the gravity value for the specified window position.  */
364    int win_gravity;    int win_gravity;
# Line 451  typedef struct mac_output mac_output; Line 451  typedef struct mac_output mac_output;
451  #define FRAME_X_IMAGE_CACHE(F) FRAME_MAC_DISPLAY_INFO ((F))->image_cache  #define FRAME_X_IMAGE_CACHE(F) FRAME_MAC_DISPLAY_INFO ((F))->image_cache
452    
453    
454  /* Pixel width of the bitmaps drawn to indicate truncation,  /* Pixel width of the fringe bitmaps drawn to indicate truncation,
455     continuation etc.  */     continuation etc.  */
456    
457  #define FRAME_FLAGS_BITMAP_WIDTH(f)     8  #define FRAME_FRINGE_BITMAP_WIDTH(f)    8
458  #define FRAME_FLAGS_BITMAP_HEIGHT(f)    8  #define FRAME_FRINGE_BITMAP_HEIGHT(f)   8
459    
460  /* Total width of areas reserved for drawing truncation bitmaps,  /* Total width of fringes reserved for drawing truncation bitmaps,
461     continuation bitmaps and alike.  The width is in canonical char     continuation bitmaps and alike.  The width is in canonical char
462     units of the frame.  This must currently be the case because window     units of the frame.  This must currently be the case because window
463     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
464     able to split windows horizontally nicely.  */     able to split windows horizontally nicely.  */
465    
466  #define FRAME_X_FLAGS_AREA_COLS(F)                              \  #define FRAME_X_FRINGE_COLS(F)                          \
467       ((2 * FRAME_FLAGS_BITMAP_WIDTH ((F)) + CANON_X_UNIT ((F)) - 1)     \       ((2 * FRAME_FRINGE_BITMAP_WIDTH ((F)) + CANON_X_UNIT ((F)) - 1)    \
468        / CANON_X_UNIT ((F)))        / CANON_X_UNIT ((F)))
469    
470  /* Total width of flags areas in pixels.  */  /* Total width of fringes in pixels.  */
471    
472  #define FRAME_X_FLAGS_AREA_WIDTH(F) \  #define FRAME_X_FRINGE_WIDTH(F) \
473       (FRAME_X_FLAGS_AREA_COLS ((F)) * CANON_X_UNIT ((F)))       (FRAME_X_FRINGE_COLS ((F)) * CANON_X_UNIT ((F)))
474    
475  /* Pixel-width of the left flags area.  */  /* Pixel-width of the left fringe.  */
476    
477  #define FRAME_X_LEFT_FLAGS_AREA_WIDTH(F) \  #define FRAME_X_LEFT_FRINGE_WIDTH(F) \
478       (FRAME_X_FLAGS_AREA_WIDTH (F) / 2)       (FRAME_X_FRINGE_WIDTH (F) / 2)
479    
480  /* Pixel-width of the right flags area.  Note that we are doing  /* Pixel-width of the right fringe.  Note that we are doing
481     integer arithmetic here, so don't loose a pixel if the total     integer arithmetic here, so don't loose a pixel if the total
482     width is an odd number.  */     width is an odd number.  */
483    
484  #define FRAME_X_RIGHT_FLAGS_AREA_WIDTH(F)       \  #define FRAME_X_RIGHT_FRINGE_WIDTH(F)   \
485       (FRAME_X_FLAGS_AREA_WIDTH (F) - FRAME_X_FLAGS_AREA_WIDTH (F) / 2)       (FRAME_X_FRINGE_WIDTH (F) - FRAME_X_FRINGE_WIDTH (F) / 2)
486    
487    
488    
# Line 632  struct scroll_bar { Line 632  struct scroll_bar {
632  #define CHAR_TO_PIXEL_WIDTH(f, width) \  #define CHAR_TO_PIXEL_WIDTH(f, width) \
633    (CHAR_TO_PIXEL_COL (f, width) \    (CHAR_TO_PIXEL_COL (f, width) \
634     + (f)->output_data.mac->vertical_scroll_bar_extra \     + (f)->output_data.mac->vertical_scroll_bar_extra \
635     + (f)->output_data.mac->flags_areas_extra \     + (f)->output_data.mac->fringes_extra \
636     + (f)->output_data.mac->internal_border_width)     + (f)->output_data.mac->internal_border_width)
637  #define CHAR_TO_PIXEL_HEIGHT(f, height) \  #define CHAR_TO_PIXEL_HEIGHT(f, height) \
638    (CHAR_TO_PIXEL_ROW (f, height) \    (CHAR_TO_PIXEL_ROW (f, height) \
# Line 653  struct scroll_bar { Line 653  struct scroll_bar {
653  #define PIXEL_TO_CHAR_WIDTH(f, width) \  #define PIXEL_TO_CHAR_WIDTH(f, width) \
654    (PIXEL_TO_CHAR_COL (f, ((width) \    (PIXEL_TO_CHAR_COL (f, ((width) \
655                            - (f)->output_data.mac->internal_border_width \                            - (f)->output_data.mac->internal_border_width \
656                            - (f)->output_data.mac->flags_areas_extra \                            - (f)->output_data.mac->fringes_extra \
657                            - (f)->output_data.mac->vertical_scroll_bar_extra)))                            - (f)->output_data.mac->vertical_scroll_bar_extra)))
658  #define PIXEL_TO_CHAR_HEIGHT(f, height) \  #define PIXEL_TO_CHAR_HEIGHT(f, height) \
659    (PIXEL_TO_CHAR_ROW (f, ((height) \    (PIXEL_TO_CHAR_ROW (f, ((height) \

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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