diff options
Diffstat (limited to 'src/dispextern.h')
| -rw-r--r-- | src/dispextern.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/dispextern.h b/src/dispextern.h index bb876f5af70..fad5bfd6f2f 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -348,6 +348,10 @@ enum glyph_type | |||
| 348 | 348 | ||
| 349 | /* Glyph is a space of fractional width and/or height. */ | 349 | /* Glyph is a space of fractional width and/or height. */ |
| 350 | STRETCH_GLYPH | 350 | STRETCH_GLYPH |
| 351 | #ifdef HAVE_XWIDGETS | ||
| 352 | /* Glyph is an external widget drawn by the GUI toolkit. */ | ||
| 353 | ,XWIDGET_GLYPH | ||
| 354 | #endif | ||
| 351 | }; | 355 | }; |
| 352 | 356 | ||
| 353 | 357 | ||
| @@ -499,6 +503,9 @@ struct glyph | |||
| 499 | /* Image ID for image glyphs (type == IMAGE_GLYPH). */ | 503 | /* Image ID for image glyphs (type == IMAGE_GLYPH). */ |
| 500 | int img_id; | 504 | int img_id; |
| 501 | 505 | ||
| 506 | #ifdef HAVE_XWIDGETS | ||
| 507 | struct xwidget *xwidget; | ||
| 508 | #endif | ||
| 502 | /* Sub-structure for type == STRETCH_GLYPH. */ | 509 | /* Sub-structure for type == STRETCH_GLYPH. */ |
| 503 | struct | 510 | struct |
| 504 | { | 511 | { |
| @@ -1350,6 +1357,9 @@ struct glyph_string | |||
| 1350 | /* Image, if any. */ | 1357 | /* Image, if any. */ |
| 1351 | struct image *img; | 1358 | struct image *img; |
| 1352 | 1359 | ||
| 1360 | #ifdef HAVE_XWIDGETS | ||
| 1361 | struct xwidget *xwidget; | ||
| 1362 | #endif | ||
| 1353 | /* Slice */ | 1363 | /* Slice */ |
| 1354 | struct glyph_slice slice; | 1364 | struct glyph_slice slice; |
| 1355 | 1365 | ||
| @@ -2102,6 +2112,10 @@ enum display_element_type | |||
| 2102 | 2112 | ||
| 2103 | /* Continuation glyphs. See the comment for IT_TRUNCATION. */ | 2113 | /* Continuation glyphs. See the comment for IT_TRUNCATION. */ |
| 2104 | IT_CONTINUATION | 2114 | IT_CONTINUATION |
| 2115 | |||
| 2116 | #ifdef HAVE_XWIDGETS | ||
| 2117 | ,IT_XWIDGET | ||
| 2118 | #endif | ||
| 2105 | }; | 2119 | }; |
| 2106 | 2120 | ||
| 2107 | 2121 | ||
| @@ -2165,6 +2179,9 @@ enum it_method { | |||
| 2165 | GET_FROM_C_STRING, | 2179 | GET_FROM_C_STRING, |
| 2166 | GET_FROM_IMAGE, | 2180 | GET_FROM_IMAGE, |
| 2167 | GET_FROM_STRETCH, | 2181 | GET_FROM_STRETCH, |
| 2182 | #ifdef HAVE_XWIDGETS | ||
| 2183 | GET_FROM_XWIDGET, | ||
| 2184 | #endif | ||
| 2168 | NUM_IT_METHODS | 2185 | NUM_IT_METHODS |
| 2169 | }; | 2186 | }; |
| 2170 | 2187 | ||
| @@ -2382,6 +2399,12 @@ struct it | |||
| 2382 | struct { | 2399 | struct { |
| 2383 | Lisp_Object object; | 2400 | Lisp_Object object; |
| 2384 | } stretch; | 2401 | } stretch; |
| 2402 | #ifdef HAVE_XWIDGETS | ||
| 2403 | /* method == GET_FROM_XWIDGET */ | ||
| 2404 | struct { | ||
| 2405 | Lisp_Object object; | ||
| 2406 | } xwidget; | ||
| 2407 | #endif | ||
| 2385 | } u; | 2408 | } u; |
| 2386 | 2409 | ||
| 2387 | /* Current text and display positions. */ | 2410 | /* Current text and display positions. */ |
| @@ -2506,6 +2529,11 @@ struct it | |||
| 2506 | /* If what == IT_IMAGE, the id of the image to display. */ | 2529 | /* If what == IT_IMAGE, the id of the image to display. */ |
| 2507 | ptrdiff_t image_id; | 2530 | ptrdiff_t image_id; |
| 2508 | 2531 | ||
| 2532 | #ifdef HAVE_XWIDGETS | ||
| 2533 | /* If what == IT_XWIDGET. */ | ||
| 2534 | struct xwidget *xwidget; | ||
| 2535 | #endif | ||
| 2536 | |||
| 2509 | /* Values from `slice' property. */ | 2537 | /* Values from `slice' property. */ |
| 2510 | struct it_slice slice; | 2538 | struct it_slice slice; |
| 2511 | 2539 | ||