diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-02 17:56:02 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-02 17:56:02 +0300 |
commit | f3d083d3f150c1e940c4086f39165fb55935344a (patch) | |
tree | d5d65702d4b80112095859e61635a95801c2d5c0 /src/ui/text.h | |
parent | a346dd6450b9c6636110d1c882d28ca4dc82573d (diff) |
Flag for tight label padding; aligning labels visually
Diffstat (limited to 'src/ui/text.h')
-rw-r--r-- | src/ui/text.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/text.h b/src/ui/text.h index 95d49fda..f165c5b4 100644 --- a/src/ui/text.h +++ b/src/ui/text.h | |||
@@ -50,6 +50,7 @@ void deinit_Text (void); | |||
50 | int lineHeight_Text (int fontId); | 50 | int lineHeight_Text (int fontId); |
51 | iInt2 measure_Text (int fontId, const char *text); | 51 | iInt2 measure_Text (int fontId, const char *text); |
52 | iInt2 measureRange_Text (int fontId, iRangecc text); | 52 | iInt2 measureRange_Text (int fontId, iRangecc text); |
53 | iRect visualBounds_Text (int fontId, iRangecc text); | ||
53 | iInt2 advance_Text (int fontId, const char *text); | 54 | iInt2 advance_Text (int fontId, const char *text); |
54 | iInt2 advanceN_Text (int fontId, const char *text, size_t n); /* `n` in characters */ | 55 | iInt2 advanceN_Text (int fontId, const char *text, size_t n); /* `n` in characters */ |
55 | iInt2 advanceRange_Text (int fontId, iRangecc text); | 56 | iInt2 advanceRange_Text (int fontId, iRangecc text); |
@@ -65,7 +66,7 @@ enum iAlignment { | |||
65 | 66 | ||
66 | void draw_Text (int fontId, iInt2 pos, int color, const char *text, ...); | 67 | void draw_Text (int fontId, iInt2 pos, int color, const char *text, ...); |
67 | void drawAlign_Text (int fontId, iInt2 pos, int color, enum iAlignment align, const char *text, ...); | 68 | void drawAlign_Text (int fontId, iInt2 pos, int color, enum iAlignment align, const char *text, ...); |
68 | void drawCentered_Text (int fontId, iRect rect, int color, const char *text, ...); | 69 | void drawCentered_Text (int fontId, iRect rect, iBool alignVisual, int color, const char *text, ...); |
69 | void drawString_Text (int fontId, iInt2 pos, int color, const iString *text); | 70 | void drawString_Text (int fontId, iInt2 pos, int color, const iString *text); |
70 | 71 | ||
71 | SDL_Texture * glyphCache_Text (void); | 72 | SDL_Texture * glyphCache_Text (void); |