diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-12-18 11:53:55 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-12-18 11:53:55 +0200 |
commit | 96d5db2560e9acf9f6437285fab5165329a20dd1 (patch) | |
tree | 3eaf72d7ae1cf467b2bc44668b343fd870318b4f /src/ui/text.h | |
parent | c8791b2a0537142a124347cabd95eac36bb59c70 (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.h | 1 |
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 | |||
175 | void drawCentered_Text (int fontId, iRect rect, iBool alignVisual, int color, const char *text, ...); | 175 | void drawCentered_Text (int fontId, iRect rect, iBool alignVisual, int color, const char *text, ...); |
176 | void drawString_Text (int fontId, iInt2 pos, int color, const iString *text); | 176 | void drawString_Text (int fontId, iInt2 pos, int color, const iString *text); |
177 | void drawRange_Text (int fontId, iInt2 pos, int color, iRangecc text); | 177 | void drawRange_Text (int fontId, iInt2 pos, int color, iRangecc text); |
178 | void drawBoundRange_Text (int fontId, iInt2 pos, int boundWidth, int color, iRangecc text); /* bound does not wrap */ | ||
178 | int drawWrapRange_Text (int fontId, iInt2 pos, int maxWidth, int color, iRangecc text); /* returns new Y */ | 179 | int drawWrapRange_Text (int fontId, iInt2 pos, int maxWidth, int color, iRangecc text); /* returns new Y */ |
179 | 180 | ||
180 | SDL_Texture * glyphCache_Text (void); | 181 | SDL_Texture * glyphCache_Text (void); |