/[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.4 by kfstorm, Fri Nov 16 13:19:19 2001 UTC revision 1.5 by kfstorm, Sat Dec 1 01:35:14 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 fringes_extra;    int left_fringe_width, right_fringe_width;
362      int fringe_cols, fringes_extra;
363    
364    /* This is the gravity value for the specified window position.  */    /* This is the gravity value for the specified window position.  */
365    int win_gravity;    int win_gravity;
# Line 451  typedef struct mac_output mac_output; Line 452  typedef struct mac_output mac_output;
452  #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
453    
454    
 /* Pixel width of the fringe bitmaps drawn to indicate truncation,  
    continuation etc.  */  
   
 #define FRAME_FRINGE_BITMAP_WIDTH(f)    8  
 #define FRAME_FRINGE_BITMAP_HEIGHT(f)   8  
   
455  /* Total width of fringes reserved for drawing truncation bitmaps,  /* Total width of fringes reserved for drawing truncation bitmaps,
456     continuation bitmaps and alike.  The width is in canonical char     continuation bitmaps and alike.  The width is in canonical char
457     units of the frame.  This must currently be the case because window     units of the frame.  This must currently be the case because window
458     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
459     able to split windows horizontally nicely.  */     able to split windows horizontally nicely.  */
460    
461  #define FRAME_X_FRINGE_COLS(F)                          \  #define FRAME_X_FRINGE_COLS(F)  ((F)->output_data.mac->fringe_cols)
      ((2 * FRAME_FRINGE_BITMAP_WIDTH ((F)) + CANON_X_UNIT ((F)) - 1)    \  
       / CANON_X_UNIT ((F)))  
462    
463  /* Total width of fringes in pixels.  */  /* Total width of fringes in pixels.  */
464    
465  #define FRAME_X_FRINGE_WIDTH(F) \  #define FRAME_X_FRINGE_WIDTH(F) ((F)->output_data.mac->fringes_extra)
      (FRAME_X_FRINGE_COLS ((F)) * CANON_X_UNIT ((F)))  
   
 /* Pixel-width of the left fringe.  */  
   
 #define FRAME_X_LEFT_FRINGE_WIDTH(F) \  
      (FRAME_X_FRINGE_WIDTH (F) / 2)  
   
 /* Pixel-width of the right fringe.  Note that we are doing  
    integer arithmetic here, so don't loose a pixel if the total  
    width is an odd number.  */  
466    
467  #define FRAME_X_RIGHT_FRINGE_WIDTH(F)   \  /* Pixel-width of the left and right fringe.  */
      (FRAME_X_FRINGE_WIDTH (F) - FRAME_X_FRINGE_WIDTH (F) / 2)  
468    
469    #define FRAME_X_LEFT_FRINGE_WIDTH(F) ((F)->output_data.mac->left_fringe_width)
470    #define FRAME_X_RIGHT_FRINGE_WIDTH(F) ((F)->output_data.mac->right_fringe_width)
471    
472    
473  /* Mac-specific scroll bar stuff.  */  /* Mac-specific scroll bar stuff.  */

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

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