C4 Engine
C4 Engine API Documentation

TextWidget::SetTextFlags

Defined in:  C4Widgets.h
Sets the text flags for a text widget.
Prototype

void SetTextFlags(uint32 flags);

Parameters
flags The new text flags.
Description
The SetTextFlags function sets the text flags to the value specified by the flags parameter, which can be a combination (through logical OR) of the following constants.
kTextMultipleLines The text is rendered as multiple lines within the text box specified by the object or widget size.
kTextPolygonGeometry Glyphs are rendered with tight bounding polygons instead of simple quads, if such data is available in the font.
kTextRectangleGeometry For axis-aligned glyphs, rectangles are rendered instead of triangle lists as an optimization, if this functionality is available on the GPU.
The initial value of the text flags is kTextFormattingDirectives | kTextClippingPlanes | kTextOpticalWeight.
See Also

TextWidget::GetTextFlags