diff options
Diffstat (limited to 'src/ui/text.h')
-rw-r--r-- | src/ui/text.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/ui/text.h b/src/ui/text.h index ac6cc1c1..1da43818 100644 --- a/src/ui/text.h +++ b/src/ui/text.h | |||
@@ -139,15 +139,20 @@ enum iTextFont { | |||
139 | 139 | ||
140 | extern int gap_Text; /* affected by content font size */ | 140 | extern int gap_Text; /* affected by content font size */ |
141 | 141 | ||
142 | void init_Text (SDL_Renderer *); | 142 | iDeclareType(Text) |
143 | void deinit_Text (void); | 143 | iDeclareTypeConstructionArgs(Text, SDL_Renderer *) |
144 | |||
145 | void init_Text (iText *, SDL_Renderer *); | ||
146 | void deinit_Text (iText *); | ||
147 | |||
148 | void setCurrent_Text (iText *); | ||
144 | 149 | ||
145 | void loadUserFonts_Text (void); /* based on Prefs */ | 150 | void loadUserFonts_Text (void); /* based on Prefs */ |
146 | 151 | ||
147 | void setContentFont_Text (enum iTextFont font); | 152 | void setContentFont_Text (iText *, enum iTextFont font); |
148 | void setHeadingFont_Text (enum iTextFont font); | 153 | void setHeadingFont_Text (iText *, enum iTextFont font); |
149 | void setContentFontSize_Text (float fontSizeFactor); /* affects all except `default*` fonts */ | 154 | void setContentFontSize_Text (iText *, float fontSizeFactor); /* affects all except `default*` fonts */ |
150 | void resetFonts_Text (void); | 155 | void resetFonts_Text (iText *); |
151 | 156 | ||
152 | int lineHeight_Text (int fontId); | 157 | int lineHeight_Text (int fontId); |
153 | iRect visualBounds_Text (int fontId, iRangecc text); | 158 | iRect visualBounds_Text (int fontId, iRangecc text); |