summaryrefslogtreecommitdiff
path: root/src/ui/text.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/text.h')
-rw-r--r--src/ui/text.h11
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
49iInt2 advanceRange_Text (int fontId, iRangecc text); 49iInt2 advanceRange_Text (int fontId, iRangecc text);
50iInt2 tryAdvanceRange_Text(int fontId, iRangecc text, int width, const char **endPos); 50iInt2 tryAdvanceRange_Text(int fontId, iRangecc text, int width, const char **endPos);
51 51
52void draw_Text (int fontId, iInt2 pos, int color, const char *text, ...); /* negative pos to switch alignment */ 52enum iAlignment {
53void drawString_Text (int fontId, iInt2 pos, int color, const iString *text); 53 left_Alignment,
54 center_Alignment,
55 right_Alignment,
56};
57
58void draw_Text (int fontId, iInt2 pos, int color, const char *text, ...);
59void drawAlign_Text (int fontId, iInt2 pos, int color, enum iAlignment align, const char *text, ...);
54void drawCentered_Text (int fontId, iRect rect, int color, const char *text, ...); 60void drawCentered_Text (int fontId, iRect rect, int color, const char *text, ...);
61void drawString_Text (int fontId, iInt2 pos, int color, const iString *text);
55 62
56SDL_Texture * glyphCache_Text (void); 63SDL_Texture * glyphCache_Text (void);
57 64