Name
playout:SetEllipsize -- set ellipsize
Synopsis
playout:SetEllipsize(ellipsize)
Function
Sets the type of ellipsization being performed for the layout.

Depending on the ellipsization mode ellipsize text is removed from the start, middle, or end of text so they fit within the width and height of layout set with playout:SetWidth() and playout:SetHeight().

If the layout contains characters such as newlines that force it to be layed out in multiple paragraphs, then whether each paragraph is ellipsized separately or the entire layout is ellipsized as a whole depends on the set height of the layout.

The following values are possible for ellipsize:

#PANGO_ELLIPSIZE_NONE
No ellipsization.
#PANGO_ELLIPSIZE_START
Omit characters at the start of the text.
#PANGO_ELLIPSIZE_MIDDLE
Omit characters in the middle of the text.
#PANGO_ELLIPSIZE_END
Omit characters at the end of the text.

The default value is #PANGO_ELLIPSIZE_NONE.

See playout:SetHeight() for details.

Inputs
ellipsize
the new ellipsization mode for the layout (see above)

Show TOC