summaryrefslogtreecommitdiff
path: root/src/ui/text.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-05-27 15:02:53 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-05-27 15:02:53 +0300
commit3d25f624d92668377eac1f206a77267563db7edc (patch)
treef1e98c96e8896ec474fc3fe3a4c4c6697e5b6c42 /src/ui/text.h
parentc73a54f3c416eb80974385f97c76f725448153aa (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.h17
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
158void cache_Text (int fontId, iRangecc text); /* pre-render glyphs */ 158void cache_Text (int fontId, iRangecc text); /* pre-render glyphs */
159 159
160void draw_Text (int fontId, iInt2 pos, int color, const char *text, ...); 160void draw_Text (int fontId, iInt2 pos, int color, const char *text, ...);
161void drawAlign_Text (int fontId, iInt2 pos, int color, enum iAlignment align, const char *text, ...); 161void drawAlign_Text (int fontId, iInt2 pos, int color, enum iAlignment align, const char *text, ...);
162void drawCentered_Text (int fontId, iRect rect, iBool alignVisual, int color, const char *text, ...); 162void drawCentered_Text (int fontId, iRect rect, iBool alignVisual, int color, const char *text, ...);
163void drawString_Text (int fontId, iInt2 pos, int color, const iString *text); 163void drawCenteredRange_Text (int fontId, iRect rect, iBool alignVisual, int color, iRangecc text);
164void drawRange_Text (int fontId, iInt2 pos, int color, iRangecc text); 164void drawString_Text (int fontId, iInt2 pos, int color, const iString *text);
165void drawRangeN_Text (int fontId, iInt2 pos, int color, iRangecc text, size_t maxLen); 165void drawRange_Text (int fontId, iInt2 pos, int color, iRangecc text);
166void drawBoundRange_Text (int fontId, iInt2 pos, int boundWidth, int color, iRangecc text); /* bound does not wrap */ 166void drawRangeN_Text (int fontId, iInt2 pos, int color, iRangecc text, size_t maxLen);
167int drawWrapRange_Text (int fontId, iInt2 pos, int maxWidth, int color, iRangecc text); /* returns new Y */ 167void drawBoundRange_Text (int fontId, iInt2 pos, int boundWidth, int color, iRangecc text); /* bound does not wrap */
168int drawWrapRange_Text (int fontId, iInt2 pos, int maxWidth, int color, iRangecc text); /* returns new Y */
168 169
169SDL_Texture * glyphCache_Text (void); 170SDL_Texture * glyphCache_Text (void);
170 171