diff options
| author | Gerd Moellmann | 2000-11-14 05:41:13 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-11-14 05:41:13 +0000 |
| commit | e9e32f4643b950fcf15db33dc0a50c8551111ee0 (patch) | |
| tree | 709011fb3b70c2a81fe3ec688a0c6324af63dc81 /src/dispextern.h | |
| parent | 936ae731f35a288ebd5fc875f4123eaa286c5f50 (diff) | |
| download | emacs-e9e32f4643b950fcf15db33dc0a50c8551111ee0.tar.gz emacs-e9e32f4643b950fcf15db33dc0a50c8551111ee0.zip | |
(CURRENT_MODE_LINE_HEIGHT)
(CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
and current_header_line_height first.
(current_mode_line_height, current_header_line_height): Declare
extern.
Diffstat (limited to 'src/dispextern.h')
| -rw-r--r-- | src/dispextern.h | 37 |
1 files changed, 23 insertions, 14 deletions
diff --git a/src/dispextern.h b/src/dispextern.h index 15ff0227dba..9b899c2105f 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -916,22 +916,30 @@ extern struct glyph_row scratch_glyph_row; | |||
| 916 | : 0) | 916 | : 0) |
| 917 | 917 | ||
| 918 | /* Return the current height of the mode line of window W. If not | 918 | /* Return the current height of the mode line of window W. If not |
| 919 | known from W's current glyph matrix, return a default based on the | 919 | known from current_mode_line_height, look at W's current glyph |
| 920 | height of the font of the face `modeline'. */ | 920 | matrix, or return a default based on the height of the font of the |
| 921 | 921 | face `mode-line'. */ | |
| 922 | #define CURRENT_MODE_LINE_HEIGHT(W) \ | 922 | |
| 923 | (MATRIX_MODE_LINE_HEIGHT ((W)->current_matrix) \ | 923 | #define CURRENT_MODE_LINE_HEIGHT(W) \ |
| 924 | ? MATRIX_MODE_LINE_HEIGHT ((W)->current_matrix) \ | 924 | (current_mode_line_height >= 0 \ |
| 925 | : estimate_mode_line_height (XFRAME ((W)->frame), MODE_LINE_FACE_ID)) | 925 | ? current_mode_line_height \ |
| 926 | : (MATRIX_MODE_LINE_HEIGHT ((W)->current_matrix) \ | ||
| 927 | ? MATRIX_MODE_LINE_HEIGHT ((W)->current_matrix) \ | ||
| 928 | : estimate_mode_line_height (XFRAME ((W)->frame), \ | ||
| 929 | MODE_LINE_FACE_ID))) | ||
| 926 | 930 | ||
| 927 | /* Return the current height of the top line of window W. If not | 931 | /* Return the current height of the top line of window W. If not |
| 928 | known from W's current glyph matrix, return an estimation based on | 932 | known from current_header_line_height, look at W's current glyph |
| 929 | the height of the font of the face `top-line'. */ | 933 | matrix, or return an estimation based on the height of the font of |
| 930 | 934 | the face `header-line'. */ | |
| 931 | #define CURRENT_HEADER_LINE_HEIGHT(W) \ | 935 | |
| 932 | (MATRIX_HEADER_LINE_HEIGHT ((W)->current_matrix) \ | 936 | #define CURRENT_HEADER_LINE_HEIGHT(W) \ |
| 933 | ? MATRIX_HEADER_LINE_HEIGHT ((W)->current_matrix) \ | 937 | (current_header_line_height >= 0 \ |
| 934 | : estimate_mode_line_height (XFRAME ((W)->frame), HEADER_LINE_FACE_ID)) | 938 | ? current_header_line_height \ |
| 939 | : (MATRIX_HEADER_LINE_HEIGHT ((W)->current_matrix) \ | ||
| 940 | ? MATRIX_HEADER_LINE_HEIGHT ((W)->current_matrix) \ | ||
| 941 | : estimate_mode_line_height (XFRAME ((W)->frame), \ | ||
| 942 | HEADER_LINE_FACE_ID))) | ||
| 935 | 943 | ||
| 936 | /* Return the height of the desired mode line of window W. */ | 944 | /* Return the height of the desired mode line of window W. */ |
| 937 | 945 | ||
| @@ -2154,6 +2162,7 @@ extern int redisplaying_p; | |||
| 2154 | extern Lisp_Object Vimage_types; | 2162 | extern Lisp_Object Vimage_types; |
| 2155 | extern void add_to_log P_ ((char *, Lisp_Object, Lisp_Object)); | 2163 | extern void add_to_log P_ ((char *, Lisp_Object, Lisp_Object)); |
| 2156 | extern int help_echo_showing_p; | 2164 | extern int help_echo_showing_p; |
| 2165 | extern int current_mode_line_height, current_header_line_height; | ||
| 2157 | 2166 | ||
| 2158 | /* Defined in sysdep.c */ | 2167 | /* Defined in sysdep.c */ |
| 2159 | 2168 | ||