Mercurial > emacs
comparison src/dispextern.h @ 92188:579a729e2f9f
(struct glyph_string): New member padding_p.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 25 Feb 2008 01:49:09 +0000 |
parents | 1c088baa9d2d |
children | ce06567a933d |
comparison
equal
deleted
inserted
replaced
92187:b7277e09e943 | 92188:579a729e2f9f |
---|---|
349 /* Non-zero means this glyph's physical ascent or descent is greater | 349 /* Non-zero means this glyph's physical ascent or descent is greater |
350 than its logical ascent/descent, i.e. it may potentially overlap | 350 than its logical ascent/descent, i.e. it may potentially overlap |
351 glyphs above or below it. */ | 351 glyphs above or below it. */ |
352 unsigned overlaps_vertically_p : 1; | 352 unsigned overlaps_vertically_p : 1; |
353 | 353 |
354 /* 1 means glyph is a padding glyph. Padding glyphs are used for | 354 /* For terminal frames, 1 means glyph is a padding glyph. Padding |
355 characters whose visual shape consists of more than one glyph | 355 glyphs are used for characters whose visual shape consists of |
356 (e.g. Asian characters). All but the first glyph of such a glyph | 356 more than one glyph (e.g. Asian characters). All but the first |
357 sequence have the padding_p flag set. Only used for terminal | 357 glyph of such a glyph sequence have the padding_p flag set. This |
358 frames, and there only to minimize code changes. A better way | 358 flag is used only to minimize code changes. A better way would |
359 would probably be to use the width field of glyphs to express | 359 probably be to use the width field of glyphs to express padding. |
360 padding. */ | 360 |
361 For graphic frames, 1 means the pixel width of the glyph in a | |
362 font is 0, but 1-pixel is padded on displaying for correct cursor | |
363 displaying. The member `pixel_width' above is set to 1. */ | |
361 unsigned padding_p : 1; | 364 unsigned padding_p : 1; |
362 | 365 |
363 /* 1 means the actual glyph is not available, draw a box instead. | 366 /* 1 means the actual glyph is not available, draw a box instead. |
364 This can happen when a font couldn't be loaded, or a character | 367 This can happen when a font couldn't be loaded, or a character |
365 doesn't have a glyph in a font. */ | 368 doesn't have a glyph in a font. */ |
1194 OVERLAPS_ERASED_CURSOR, the clip rect is restricted to the rect | 1197 OVERLAPS_ERASED_CURSOR, the clip rect is restricted to the rect |
1195 of the erased cursor. OVERLAPS_PRED and OVERLAPS_SUCC mean we | 1198 of the erased cursor. OVERLAPS_PRED and OVERLAPS_SUCC mean we |
1196 draw overlaps with the preceding and the succeeding rows, | 1199 draw overlaps with the preceding and the succeeding rows, |
1197 respectively. */ | 1200 respectively. */ |
1198 unsigned for_overlaps : 3; | 1201 unsigned for_overlaps : 3; |
1202 | |
1203 /* 1 means that all glyphs in this glyph string has the flag | |
1204 padding_p set, and thus must be drawn one by one to have 1-pixel | |
1205 width even though the logical width in the font is zero. */ | |
1206 unsigned padding_p : 1; | |
1199 | 1207 |
1200 /* The GC to use for drawing this glyph string. */ | 1208 /* The GC to use for drawing this glyph string. */ |
1201 #if defined(HAVE_X_WINDOWS) || defined(MAC_OS) | 1209 #if defined(HAVE_X_WINDOWS) || defined(MAC_OS) |
1202 GC gc; | 1210 GC gc; |
1203 #endif | 1211 #endif |