summaryrefslogtreecommitdiff
path: root/src/ui/text.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-07-22 06:57:00 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-07-22 06:57:00 +0300
commit62cf1f7ec604cd408b1aaf59ab2e1f6f87558b3d (patch)
treee8bab680968b4d4a1732fa2f9e311f17d538585a /src/ui/text.h
parent43cce1b10901bff92d5bd52595ef3b7b4e65ee80 (diff)
InputWidget: Sensitive input mode
At a low level when measuring/drawing text, replace all characters with an override character.
Diffstat (limited to 'src/ui/text.h')
-rw-r--r--src/ui/text.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/text.h b/src/ui/text.h
index 322d2938..71776dca 100644
--- a/src/ui/text.h
+++ b/src/ui/text.h
@@ -211,6 +211,7 @@ struct Impl_WrapText {
211 enum iWrapTextMode mode; 211 enum iWrapTextMode mode;
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 iChar overrideChar; /* use this for all characters instead of the real ones */
214 int baseDir; /* set to +1 for LTR, -1 for RTL */ 215 int baseDir; /* set to +1 for LTR, -1 for RTL */
215 iInt2 hitPoint; /* sets hitChar_out */ 216 iInt2 hitPoint; /* sets hitChar_out */
216 const char *hitChar; /* sets hitAdvance_out */ 217 const char *hitChar; /* sets hitAdvance_out */