C4 Engine
C4 Engine API Documentation

TextWidget::SetTextOffset

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

void SetTextOffset(const Vector2D& offset) const;

Parameters
offset The new offset.
Description
The SetTextOffset function sets the text offset for a text widget to the value specified by the offset parameter. When text is rendered, it is offset by the product of the font size and the text offset value. Positive values offset the text right and upward, and negative values offset the text left and downward. The text scale does not factor into the offset distance. The default text offset is (0.0, 0.0).
See Also

TextWidget::SetTextOffset

TextWidget::GetTextScale

TextWidget::SetTextScale

TextWidget::GetFontSize

TextWidget::SetFontSize