diff options
Diffstat (limited to 'src/ui/text.h')
-rw-r--r-- | src/ui/text.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/ui/text.h b/src/ui/text.h index be95e948..982218eb 100644 --- a/src/ui/text.h +++ b/src/ui/text.h | |||
@@ -49,9 +49,16 @@ iInt2 advanceN_Text (int fontId, const char *text, size_t n); /* `n` in | |||
49 | iInt2 advanceRange_Text (int fontId, iRangecc text); | 49 | iInt2 advanceRange_Text (int fontId, iRangecc text); |
50 | iInt2 tryAdvanceRange_Text(int fontId, iRangecc text, int width, const char **endPos); | 50 | iInt2 tryAdvanceRange_Text(int fontId, iRangecc text, int width, const char **endPos); |
51 | 51 | ||
52 | void draw_Text (int fontId, iInt2 pos, int color, const char *text, ...); /* negative pos to switch alignment */ | 52 | enum iAlignment { |
53 | void drawString_Text (int fontId, iInt2 pos, int color, const iString *text); | 53 | left_Alignment, |
54 | center_Alignment, | ||
55 | right_Alignment, | ||
56 | }; | ||
57 | |||
58 | void draw_Text (int fontId, iInt2 pos, int color, const char *text, ...); | ||
59 | void drawAlign_Text (int fontId, iInt2 pos, int color, enum iAlignment align, const char *text, ...); | ||
54 | void drawCentered_Text (int fontId, iRect rect, int color, const char *text, ...); | 60 | void drawCentered_Text (int fontId, iRect rect, int color, const char *text, ...); |
61 | void drawString_Text (int fontId, iInt2 pos, int color, const iString *text); | ||
55 | 62 | ||
56 | SDL_Texture * glyphCache_Text (void); | 63 | SDL_Texture * glyphCache_Text (void); |
57 | 64 | ||