draw.h - text alignment flags¶
Text alignment flags
TA_LEFT |
Align left |
TA_RIGHT |
Align right |
TA_CENTRE | TA_CENTER |
Align centre |
TA_TOP |
Align top |
TA_BOTTOM |
Align bottom (below descenders on characters such as “p” and “q”) |
TA_BASELINE |
Align to baseline (the line below which descenders hang) |
TA_RTLREADING |
Right-to-left reading order for bi-directional text when the font is Hebrew or Arabic. |
TA_REPORTDEFAULT |
Default in printed reports |
TA_SCREENDEFAULT |
Default in screen windows |
Text alignment flags for the DrawText() function. The flags are described in more detail under DrawText().
The GetTextAlign() function returns the current value of these flags.
The SetTextAlign() function sets a new value and returns the previous value.
The DrawFormattedText() function forces the values TA_LEFT | TA_TOP and then resets the previous value.
RELATED TOPICS |