diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-27 15:02:53 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-27 15:02:53 +0300 |
commit | 3d25f624d92668377eac1f206a77267563db7edc (patch) | |
tree | f1e98c96e8896ec474fc3fe3a4c4c6697e5b6c42 /src/ui/text.h | |
parent | c73a54f3c416eb80974385f97c76f725448153aa (diff) |
DocumentWidget: Composited link numbers/letters
Draw the circle and the number/letter separately since we don't
have a font with all the glyphs.
Diffstat (limited to 'src/ui/text.h')
-rw-r--r-- | src/ui/text.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/ui/text.h b/src/ui/text.h index 3dc38238..0007b264 100644 --- a/src/ui/text.h +++ b/src/ui/text.h | |||
@@ -157,14 +157,15 @@ void setOpacity_Text (float opacity); | |||
157 | 157 | ||
158 | void cache_Text (int fontId, iRangecc text); /* pre-render glyphs */ | 158 | void cache_Text (int fontId, iRangecc text); /* pre-render glyphs */ |
159 | 159 | ||
160 | void draw_Text (int fontId, iInt2 pos, int color, const char *text, ...); | 160 | void draw_Text (int fontId, iInt2 pos, int color, const char *text, ...); |
161 | void drawAlign_Text (int fontId, iInt2 pos, int color, enum iAlignment align, const char *text, ...); | 161 | void drawAlign_Text (int fontId, iInt2 pos, int color, enum iAlignment align, const char *text, ...); |
162 | void drawCentered_Text (int fontId, iRect rect, iBool alignVisual, int color, const char *text, ...); | 162 | void drawCentered_Text (int fontId, iRect rect, iBool alignVisual, int color, const char *text, ...); |
163 | void drawString_Text (int fontId, iInt2 pos, int color, const iString *text); | 163 | void drawCenteredRange_Text (int fontId, iRect rect, iBool alignVisual, int color, iRangecc text); |
164 | void drawRange_Text (int fontId, iInt2 pos, int color, iRangecc text); | 164 | void drawString_Text (int fontId, iInt2 pos, int color, const iString *text); |
165 | void drawRangeN_Text (int fontId, iInt2 pos, int color, iRangecc text, size_t maxLen); | 165 | void drawRange_Text (int fontId, iInt2 pos, int color, iRangecc text); |
166 | void drawBoundRange_Text (int fontId, iInt2 pos, int boundWidth, int color, iRangecc text); /* bound does not wrap */ | 166 | void drawRangeN_Text (int fontId, iInt2 pos, int color, iRangecc text, size_t maxLen); |
167 | int drawWrapRange_Text (int fontId, iInt2 pos, int maxWidth, int color, iRangecc text); /* returns new Y */ | 167 | void drawBoundRange_Text (int fontId, iInt2 pos, int boundWidth, int color, iRangecc text); /* bound does not wrap */ |
168 | int drawWrapRange_Text (int fontId, iInt2 pos, int maxWidth, int color, iRangecc text); /* returns new Y */ | ||
168 | 169 | ||
169 | SDL_Texture * glyphCache_Text (void); | 170 | SDL_Texture * glyphCache_Text (void); |
170 | 171 | ||