diff options
Diffstat (limited to 'src/ui/text.h')
-rw-r--r-- | src/ui/text.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/ui/text.h b/src/ui/text.h index 0209e10a..8be5a373 100644 --- a/src/ui/text.h +++ b/src/ui/text.h | |||
@@ -148,13 +148,7 @@ void setContentFontSize_Text (float fontSizeFactor); /* affects all except `d | |||
148 | void resetFonts_Text (void); | 148 | void resetFonts_Text (void); |
149 | 149 | ||
150 | int lineHeight_Text (int fontId); | 150 | int lineHeight_Text (int fontId); |
151 | //iInt2 measure_Text (int fontId, const char *text); | ||
152 | //iInt2 measureRange_Text (int fontId, iRangecc text); | ||
153 | iRect visualBounds_Text (int fontId, iRangecc text); | 151 | iRect visualBounds_Text (int fontId, iRangecc text); |
154 | //iInt2 advance_Text (int fontId, const char *text); | ||
155 | //iInt2 advanceN_Text (int fontId, const char *text, size_t n); /* `n` in characters */ | ||
156 | //iInt2 advanceRange_Text (int fontId, iRangecc text); | ||
157 | //iInt2 advanceWrapRange_Text (int fontId, int maxWidth, iRangecc text); | ||
158 | 152 | ||
159 | iDeclareType(TextMetrics) | 153 | iDeclareType(TextMetrics) |
160 | 154 | ||
@@ -209,7 +203,7 @@ struct Impl_WrapText { | |||
209 | iRangecc text; | 203 | iRangecc text; |
210 | int maxWidth; | 204 | int maxWidth; |
211 | enum iWrapTextMode mode; | 205 | enum iWrapTextMode mode; |
212 | iBool (*wrapFunc)(iWrapText *, iRangecc wrappedText, int advance); | 206 | iBool (*wrapFunc)(iWrapText *, iRangecc wrappedText, int origin, int advance); |
213 | void * context; | 207 | void * context; |
214 | /* internal */ | 208 | /* internal */ |
215 | iRangecc wrapRange_; | 209 | iRangecc wrapRange_; |