emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/dispextern.h


From: Pavel Janík
Subject: [Emacs-diffs] Changes to emacs/src/dispextern.h
Date: Mon, 14 Jan 2002 09:27:35 -0500

Index: emacs/src/dispextern.h
diff -c emacs/src/dispextern.h:1.119 emacs/src/dispextern.h:1.120
*** emacs/src/dispextern.h:1.119        Sun Jan 13 06:39:09 2002
--- emacs/src/dispextern.h      Mon Jan 14 09:27:34 2002
***************
*** 295,301 ****
    /* Type of font used to display the character glyph. Used to
       determine which set of functions to use to obtain font metrics
       for the glyph. Value should be an enumerator of the type
!      w32_char_font_type. */
    unsigned w32_font_type : 2;
  #endif
  
--- 295,301 ----
    /* Type of font used to display the character glyph. Used to
       determine which set of functions to use to obtain font metrics
       for the glyph. Value should be an enumerator of the type
!      w32_char_font_type.  */
    unsigned w32_font_type : 2;
  #endif
  
***************
*** 375,381 ****
  
  /* Construct a glyph code from a character glyph GLYPH.  If the
     character is multibyte, return -1 as we can't use glyph table for a
!    multibyte character. */
       
  #define GLYPH_FROM_CHAR_GLYPH(GLYPH)                          \
    ((GLYPH).u.ch < 256                                         \
--- 375,381 ----
  
  /* Construct a glyph code from a character glyph GLYPH.  If the
     character is multibyte, return -1 as we can't use glyph table for a
!    multibyte character.  */
       
  #define GLYPH_FROM_CHAR_GLYPH(GLYPH)                          \
    ((GLYPH).u.ch < 256                                         \
***************
*** 575,581 ****
       to any text; it is some buffer position if the row corresponds to
       an empty display line that displays a line end.  This is what old
       redisplay used to do.  (Except in code for terminal frames, this
!      kludge is no longer use, I believe. --gerd).
  
       See also start, end, displays_text_p and ends_at_zv_p for cleaner
       ways to do it.  The special meaning of positions 0 and -1 will be
--- 575,581 ----
       to any text; it is some buffer position if the row corresponds to
       an empty display line that displays a line end.  This is what old
       redisplay used to do.  (Except in code for terminal frames, this
!      kludge is no longer used, I believe. --gerd).
  
       See also start, end, displays_text_p and ends_at_zv_p for cleaner
       ways to do it.  The special meaning of positions 0 and -1 will be
***************
*** 667,678 ****
       of lbearing or rbearing.  */
    unsigned contains_overlapping_glyphs_p : 1;
  
!   /* 1 means this row is a wide as the window it is displayed in, including
       scroll bars, fringes, and internal borders.  This also
       implies that the row doesn't have marginal areas.  */
    unsigned full_width_p : 1;
  
!   /* Non-zero means row is a mode or top-line.  */
    unsigned mode_line_p : 1;
  
    /* 1 in a current row means this row is overlapped by another row.  */
--- 667,678 ----
       of lbearing or rbearing.  */
    unsigned contains_overlapping_glyphs_p : 1;
  
!   /* 1 means this row is as wide as the window it is displayed in, including
       scroll bars, fringes, and internal borders.  This also
       implies that the row doesn't have marginal areas.  */
    unsigned full_width_p : 1;
  
!   /* Non-zero means row is a mode or header-line.  */
    unsigned mode_line_p : 1;
  
    /* 1 in a current row means this row is overlapped by another row.  */
***************
*** 685,691 ****
    
    /* 1 means this line starts in the middle of a character consisting
       of more than one glyph.  Some glyphs have been put in the
!      previoius row, the rest are put in this row.  */
    unsigned starts_in_middle_of_char_p : 1;
  
    /* 1 in a current row means this row overlaps others.  */
--- 685,691 ----
    
    /* 1 means this line starts in the middle of a character consisting
       of more than one glyph.  Some glyphs have been put in the
!      previous row, the rest are put in this row.  */
    unsigned starts_in_middle_of_char_p : 1;
  
    /* 1 in a current row means this row overlaps others.  */
***************
*** 719,725 ****
  #define MATRIX_MODE_LINE_ROW(MATRIX) \
       ((MATRIX)->rows + (MATRIX)->nrows - 1)
  
! /* Return a pointer to the row reserved for the top line in MATRIX.
     This is always the first row in MATRIX because that's the only
     way that works in frame-based redisplay.  */
  
--- 719,725 ----
  #define MATRIX_MODE_LINE_ROW(MATRIX) \
       ((MATRIX)->rows + (MATRIX)->nrows - 1)
  
! /* Return a pointer to the row reserved for the header line in MATRIX.
     This is always the first row in MATRIX because that's the only
     way that works in frame-based redisplay.  */
  
***************
*** 748,754 ****
  #define MATRIX_ROW_START_CHARPOS(ROW) ((ROW)->start.pos.charpos)
  #define MATRIX_ROW_START_BYTEPOS(ROW) ((ROW)->start.pos.bytepos)
  
! /* Return character/ byte position at which ROW ends.  */
       
  #define MATRIX_ROW_END_CHARPOS(ROW) ((ROW)->end.pos.charpos)
  #define MATRIX_ROW_END_BYTEPOS(ROW) ((ROW)->end.pos.bytepos)
--- 748,754 ----
  #define MATRIX_ROW_START_CHARPOS(ROW) ((ROW)->start.pos.charpos)
  #define MATRIX_ROW_START_BYTEPOS(ROW) ((ROW)->start.pos.bytepos)
  
! /* Return the character/ byte position at which ROW ends.  */
       
  #define MATRIX_ROW_END_CHARPOS(ROW) ((ROW)->end.pos.charpos)
  #define MATRIX_ROW_END_BYTEPOS(ROW) ((ROW)->end.pos.bytepos)
***************
*** 914,920 ****
        ? MATRIX_MODE_LINE_ROW (MATRIX)->height \
        : 0)
  
! /* Return the height of the top line in glyph matrix MATRIX, or zero
     if not known.  This macro is called under circumstances where
     MATRIX might not have been allocated yet.  */
  
--- 914,920 ----
        ? MATRIX_MODE_LINE_ROW (MATRIX)->height \
        : 0)
  
! /* Return the height of the header line in glyph matrix MATRIX, or zero
     if not known.  This macro is called under circumstances where
     MATRIX might not have been allocated yet.  */
  
***************
*** 936,942 ****
         : estimate_mode_line_height (XFRAME ((W)->frame),      \
                                      MODE_LINE_FACE_ID)))
  
! /* Return the current height of the top line of window W.  If not
     known from current_header_line_height, look at W's current glyph
     matrix, or return an estimation based on the height of the font of
     the face `header-line'.  */
--- 936,942 ----
         : estimate_mode_line_height (XFRAME ((W)->frame),      \
                                      MODE_LINE_FACE_ID)))
  
! /* Return the current height of the header line of window W.  If not
     known from current_header_line_height, look at W's current glyph
     matrix, or return an estimation based on the height of the font of
     the face `header-line'.  */
***************
*** 954,960 ****
  #define DESIRED_MODE_LINE_HEIGHT(W) \
       MATRIX_MODE_LINE_HEIGHT ((W)->desired_matrix)
  
! /* Return the height of the desired top line of window W.  */
  
  #define DESIRED_HEADER_LINE_HEIGHT(W) \
       MATRIX_HEADER_LINE_HEIGHT ((W)->desired_matrix)
--- 954,960 ----
  #define DESIRED_MODE_LINE_HEIGHT(W) \
       MATRIX_MODE_LINE_HEIGHT ((W)->desired_matrix)
  
! /* Return the height of the desired header line of window W.  */
  
  #define DESIRED_HEADER_LINE_HEIGHT(W) \
       MATRIX_HEADER_LINE_HEIGHT ((W)->desired_matrix)
***************
*** 990,996 ****
        ? CURRENT_MODE_LINE_HEIGHT (W)          \
        : 0)
  
! /* Height in pixels of the top line.  Zero if W doesn't have a top
     line.  */
       
  #define WINDOW_DISPLAY_HEADER_LINE_HEIGHT(W)  \
--- 990,996 ----
        ? CURRENT_MODE_LINE_HEIGHT (W)          \
        : 0)
  
! /* Height in pixels of the header line.  Zero if W doesn't have a header
     line.  */
       
  #define WINDOW_DISPLAY_HEADER_LINE_HEIGHT(W)  \
***************
*** 1004,1010 ****
       (WINDOW_DISPLAY_PIXEL_HEIGHT ((W))               \
        - WINDOW_DISPLAY_MODE_LINE_HEIGHT ((W)))
  
! /* Pixel height of window W without mode and top line.  */
       
  #define WINDOW_DISPLAY_TEXT_HEIGHT(W)         \
       (WINDOW_DISPLAY_PIXEL_HEIGHT ((W))               \
--- 1004,1010 ----
       (WINDOW_DISPLAY_PIXEL_HEIGHT ((W))               \
        - WINDOW_DISPLAY_MODE_LINE_HEIGHT ((W)))
  
! /* Pixel height of window W without mode and header line.  */
       
  #define WINDOW_DISPLAY_TEXT_HEIGHT(W)         \
       (WINDOW_DISPLAY_PIXEL_HEIGHT ((W))               \
***************
*** 1053,1059 ****
  #define FRAME_TO_WINDOW_PIXEL_X(W, X) \
       ((X) - WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X ((W)))
  
! /* Convert frame relative pixel X to window relative pixel Y.  */
       
  #define FRAME_TO_WINDOW_PIXEL_Y(W, Y) \
       ((Y) - WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y ((W)))
--- 1053,1059 ----
  #define FRAME_TO_WINDOW_PIXEL_X(W, X) \
       ((X) - WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X ((W)))
  
! /* Convert frame relative pixel Y to window relative pixel Y.  */
       
  #define FRAME_TO_WINDOW_PIXEL_Y(W, Y) \
       ((Y) - WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y ((W)))
***************
*** 1109,1115 ****
         ? WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH ((W))   \
         : WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH ((W))))
       
! /* Value is non-zero if window W has a mode line.  */
  
  #define WINDOW_WANTS_MODELINE_P(W)                                    \
       (!MINI_WINDOW_P (W)                                              \
--- 1109,1115 ----
         ? WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH ((W))   \
         : WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH ((W))))
       
! /* Value is non-zero if window W wants a mode line.  */
  
  #define WINDOW_WANTS_MODELINE_P(W)                                    \
       (!MINI_WINDOW_P (W)                                              \
***************
*** 1118,1124 ****
        && BUFFERP ((W)->buffer)                                                
\
        && !NILP (XBUFFER ((W)->buffer)->mode_line_format))
  
! /* Value is non-zero if window W wants a top line.  */
  
  #define WINDOW_WANTS_HEADER_LINE_P(W)                                 \
       (!MINI_WINDOW_P (W)                                              \
--- 1118,1124 ----
        && BUFFERP ((W)->buffer)                                                
\
        && !NILP (XBUFFER ((W)->buffer)->mode_line_format))
  
! /* Value is non-zero if window W wants a header line.  */
  
  #define WINDOW_WANTS_HEADER_LINE_P(W)                                 \
       (!MINI_WINDOW_P (W)                                              \
***************
*** 1249,1255 ****
    /* Non-zero means characters in this face have a box that thickness
       around them.  If it is negative, the absolute value indicates the
       thickness, and the horizontal lines of box (top and bottom) are
!      drawn inside of characters glyph area.  The vartical lines of box
       (left and right) are drawn as the same way as the case that this
       value is positive.  */
    int box_line_width;
--- 1249,1255 ----
    /* Non-zero means characters in this face have a box that thickness
       around them.  If it is negative, the absolute value indicates the
       thickness, and the horizontal lines of box (top and bottom) are
!      drawn inside of characters glyph area.  The vertical lines of box
       (left and right) are drawn as the same way as the case that this
       value is positive.  */
    int box_line_width;
***************
*** 1297,1303 ****
    unsigned underline_defaulted_p : 1; 
  
    /* 1 means that either no color is specified for the corresponding
!      attribute or that the the specified color couldn't be loaded.
       Use the foreground color when drawing in that case. */
    unsigned overline_color_defaulted_p : 1;
    unsigned strike_through_color_defaulted_p : 1;
--- 1297,1303 ----
    unsigned underline_defaulted_p : 1; 
  
    /* 1 means that either no color is specified for the corresponding
!      attribute or that the specified color couldn't be loaded.
       Use the foreground color when drawing in that case. */
    unsigned overline_color_defaulted_p : 1;
    unsigned strike_through_color_defaulted_p : 1;
***************
*** 1335,1341 ****
  
  #define FACE_TTY_DEFAULT_FG_COLOR ((unsigned long) -2)
  
! /* Color index indicating that face uses an unsigned background color.  */
  
  #define FACE_TTY_DEFAULT_BG_COLOR ((unsigned long) -3)
  
--- 1335,1341 ----
  
  #define FACE_TTY_DEFAULT_FG_COLOR ((unsigned long) -2)
  
! /* Color index indicating that face uses an unknown background color.  */
  
  #define FACE_TTY_DEFAULT_BG_COLOR ((unsigned long) -3)
  
***************
*** 1588,1594 ****
    Lisp_Object *dpvec, *dpend;
  
    /* Length in bytes of the char that filled dpvec.  A value of zero
!      means that no character such character is involved.  */
    int dpvec_char_len;
  
    /* Face id of the iterator saved in case a glyph from dpvec contains
--- 1588,1594 ----
    Lisp_Object *dpvec, *dpend;
  
    /* Length in bytes of the char that filled dpvec.  A value of zero
!      means that no such character is involved.  */
    int dpvec_char_len;
  
    /* Face id of the iterator saved in case a glyph from dpvec contains
***************
*** 1751,1757 ****
    int last_visible_y;
  
    /* Additional space in pixels between lines (for window systems
!      only.).  */
    int extra_line_spacing;
  
    /* If non-null, glyphs are produced in glyph_row with each call to
--- 1751,1757 ----
    int last_visible_y;
  
    /* Additional space in pixels between lines (for window systems
!      only.)  */
    int extra_line_spacing;
  
    /* If non-null, glyphs are produced in glyph_row with each call to
***************
*** 1901,1907 ****
       redisplay.  CURSOR_ON_P non-zero means switch cursor on.
       MOUSE_FACE_OVERWRITTEN_P non-zero means that some lines in W
       that contained glyphs in mouse-face were overwritten, so we
!      have to update the mouse hightlight.  */
    void (*update_window_end_hook) P_ ((struct window *w, int cursor_on_p,
                                      int mouse_face_overwritten_p));
    
--- 1901,1907 ----
       redisplay.  CURSOR_ON_P non-zero means switch cursor on.
       MOUSE_FACE_OVERWRITTEN_P non-zero means that some lines in W
       that contained glyphs in mouse-face were overwritten, so we
!      have to update the mouse highlight.  */
    void (*update_window_end_hook) P_ ((struct window *w, int cursor_on_p,
                                      int mouse_face_overwritten_p));
    
***************
*** 1949,1955 ****
  struct image;
  
  
! /* Each image format (JPEG, IIFF, ...) supported is described by
     a structure of the type below.  */
  
  struct image_type
--- 1949,1955 ----
  struct image;
  
  
! /* Each image format (JPEG, TIFF, ...) supported is described by
     a structure of the type below.  */
  
  struct image_type
***************
*** 2015,2021 ****
  #define DEFAULT_IMAGE_HEIGHT 30
  
    /* Percent of image height used as ascent.  A value of
!      CENTERED_IMAGE_ASCENT means draw center the image centered on the
       line.  */
    int ascent;
  #define DEFAULT_IMAGE_ASCENT 50
--- 2015,2021 ----
  #define DEFAULT_IMAGE_HEIGHT 30
  
    /* Percent of image height used as ascent.  A value of
!      CENTERED_IMAGE_ASCENT means draw the image centered on the
       line.  */
    int ascent;
  #define DEFAULT_IMAGE_ASCENT 50



reply via email to

[Prev in Thread] Current Thread [Next in Thread]