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

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

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

See also

#2025-2-15