1.161 class tbox

Represent text in a parbox object. Normally a tbox object is used to represent each word displayed in a parbox object.. Spaces are represented by hbox objects that can be stretched and allow for line-breaks.

Please note that tbox objects are reusable: they can occurr in multiple parboxes and at multiple locations at the same time.

See class parbox for an overview of XPCE's primitives for rendering documents.

1.161.1 Send methods

tbox ->initialise: text=char_array, style=[style]
Creates a tbox object from the given text and style. The style object is used to specify the font, colour and underlining of the text.

1.161.2 Get methods

tbox <-space: -> hbox
Yield hbox object for a space compatible with the tbox object's tbox<-style. This space has hbox<-width equal to font<-advance of the font used by this tbox and hbox<-rubber @space_rubber.