Package: pango

Function pango-layout-wrap

Lambda List

pango-layout-wrap (layout)

Syntax

(pango-layout-wrap layout) => wrap
(setf (pango-layout-wrap layout) wrap)

Arguments

layout -- a pango-layout object
wrap -- a value of the pango-wrap-mode enumeration

Details

Accessor of the wrap mode of the Pango layout.

The function pango-layout-wrap gets the wrap mode for the layout. The function (setf pango-layout-wrap) sets the wrap mode. The wrap mode only has effect if a width is set on the layout with the function pango-layout-width. To turn off wrapping, set the width to -1.

Use the function pango-layout-is-wrapped to query whether any paragraphs were actually wrapped.
 

See also

2021-1-14