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

class format {#class-format}

A format object can be used to turn a device object into a table of graphicals. Two modes are defined. In column mode, the graphicals are aligned in a two-dimensional grid that is (depending on the orientation) n columns width or high. In non-column mode, if aligns the graphicals in rows, very similar as words are placed in a paragraph of text with no aligned right margin.

A format object is just a data-object. It is interpreted by attaching it to a graphical device using device ->format.

Examples:

Bugs:

The place of a graphical in the grid/row is determined by its position in the <-graphicals chain of the figure. This makes it very difficult to modify the contents a formatted figure and get the graphicals at the right position in the grid.

There are no provisions for headers; similar to the multicolumn mechanism of many text-formatters.

There is not way to draw lines between rows/columns.

They are unnecessary complicated and very confusing.

So, in short, a better alternative will be implemented some day. This probably will in the form of one or more subclasses of class figure. The functionalily provided by the <->format machanism will remain however.

@see device->format @see device-format @see device-bad_format

Instance variables {#class-format-instvars}

Send methods {#class-format-send}



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.