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

class text {#class-text}

Class text is used to display (short) text fragments on a graphical device object.

The text may be printed in any font. It may span multiple lines (separated by newline-characters (ASCII value 10)), which may be aligned on their left-side, center or right-side. The current implementation silently truncates text objects that span more than 200 physical lines.

Text objects can be boxed by setting their ->pen.

Text objects provide limited editing capabilities which are compatible to the editing capabilities provided by class editor (EMACS oriented). Text objects are edited using the method ->typed.

See also class text_item (text entry field), class view and class editor.

@see class key_binding @see text<-key_binding @see text->typed @see text.key_binding @see class editor @see class string @see class text_item

Class variables {#class-text-classvars}

Instance variables {#class-text-instvars}

Send methods {#class-text-send}

Get methods {#class-text-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.