summaryrefslogtreecommitdiff
path: root/src/ui/text.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-12-18 11:53:55 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-12-18 11:53:55 +0200
commit96d5db2560e9acf9f6437285fab5165329a20dd1 (patch)
tree3eaf72d7ae1cf467b2bc44668b343fd870318b4f /src/ui/text.h
parentc8791b2a0537142a124347cabd95eac36bb59c70 (diff)
Text: Improved handling of tab stops
Text drawing can now be made aware of the available horizontal space.
Diffstat (limited to 'src/ui/text.h')
-rw-r--r--src/ui/text.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/text.h b/src/ui/text.h
index 5867a84b..f78f570a 100644
--- a/src/ui/text.h
+++ b/src/ui/text.h
@@ -175,6 +175,7 @@ void drawAlign_Text (int fontId, iInt2 pos, int color, enum iAlignment a
175void drawCentered_Text (int fontId, iRect rect, iBool alignVisual, int color, const char *text, ...); 175void drawCentered_Text (int fontId, iRect rect, iBool alignVisual, int color, const char *text, ...);
176void drawString_Text (int fontId, iInt2 pos, int color, const iString *text); 176void drawString_Text (int fontId, iInt2 pos, int color, const iString *text);
177void drawRange_Text (int fontId, iInt2 pos, int color, iRangecc text); 177void drawRange_Text (int fontId, iInt2 pos, int color, iRangecc text);
178void drawBoundRange_Text (int fontId, iInt2 pos, int boundWidth, int color, iRangecc text); /* bound does not wrap */
178int drawWrapRange_Text (int fontId, iInt2 pos, int maxWidth, int color, iRangecc text); /* returns new Y */ 179int drawWrapRange_Text (int fontId, iInt2 pos, int maxWidth, int color, iRangecc text); /* returns new Y */
179 180
180SDL_Texture * glyphCache_Text (void); 181SDL_Texture * glyphCache_Text (void);