src/swipl-devel/packages/xpce/man/refmanual/md/text_image.md

class text_image {#class-text_image}

Class text_image takes care of mapping a one-dimensional array of (character,font,colour,attribute) quadruples onto a two-dimensional text image as we normally like to see text displayed. This class is used both by class editor and class list_browser to manage the text-part.

Class text_image uses dedicated interface techniques to their associated editor or list_browser and cannot be used outside this context. This prohibits the use of text_image objects outside the context of editor or list_browser by the application programmer.

Most behaviour of class text_image is just for communication with the associated editor or list_browser. Of interesting to the user may be:

| <->tab_distance | Distance between (regular) tab-stops |
| <->tab_stops    | Vector of tab-stops                  |
| <->wrap         | How long lines are handled           |

Bugs: We should realise boxed text-style and horizontal scrolling.

@see editor-image @see class font

Instance variables {#class-text_image-instvars}

Send methods {#class-text_image-send}

Get methods {#class-text_image-get}



Try the rswipl package in your browser

Any scripts or data that you put into this service are public.

rswipl documentation built on June 16, 2026, 5:07 p.m.