summaryrefslogtreecommitdiff
path: root/src/ui/text.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-07-20 13:58:11 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-07-20 13:58:11 +0300
commit10f44efd277855761f69687193d6d5250650186d (patch)
treef1adf38c4d215b7466952c2ba1c18692675cf191 /src/ui/text.h
parentdc1528e89d48947780e00fc1a49ce57cccdfbfe5 (diff)
Text: Hit testing during a text run
Diffstat (limited to 'src/ui/text.h')
-rw-r--r--src/ui/text.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/text.h b/src/ui/text.h
index d4f820d4..a82da22c 100644
--- a/src/ui/text.h
+++ b/src/ui/text.h
@@ -212,6 +212,10 @@ struct Impl_WrapText {
212 iBool (*wrapFunc)(iWrapText *, iRangecc wrappedText, int origin, int advance, iBool isBaseRTL); 212 iBool (*wrapFunc)(iWrapText *, iRangecc wrappedText, int origin, int advance, iBool isBaseRTL);
213 void * context; 213 void * context;
214 int baseDir; /* set to +1 for LTR, -1 for RTL */ 214 int baseDir; /* set to +1 for LTR, -1 for RTL */
215 iInt2 hitPoint;
216 /* output */
217 const char *hitChar_out;
218 float hitGlyphNormX_out; /* normalized X inside the glyph */
215 /* internal */ 219 /* internal */
216 iRangecc wrapRange_; 220 iRangecc wrapRange_;
217}; 221};