TextWidget::SetTextOffset
Defined in:
Sets the text shift for a text widget.
C4Widgets.h
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