summaryrefslogtreecommitdiff
path: root/src/ios.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-12-05 07:54:15 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-12-05 07:54:15 +0200
commitb8656d5a2e0f540d47d2dc5ccc269f709dd0b923 (patch)
treefbfc90bddc79bf35fb024293270f71496186fb22 /src/ios.h
parent8050511b683d89c5ef907bc461b98e9aaaa051a7 (diff)
iOS: Multiline text input using UITextView
Diffstat (limited to 'src/ios.h')
-rw-r--r--src/ios.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/ios.h b/src/ios.h
index 2908d833..ff07b2e8 100644
--- a/src/ios.h
+++ b/src/ios.h
@@ -65,15 +65,16 @@ void updateNowPlayingInfo_iOS (void);
65/*----------------------------------------------------------------------------------------------*/ 65/*----------------------------------------------------------------------------------------------*/
66 66
67enum iSystemTextInputFlags { 67enum iSystemTextInputFlags {
68 multiLine_SystemTextInputFlags = iBit(1), 68 selectAll_SystemTextInputFlags = iBit(1),
69 returnGo_SystemTextInputFlags = iBit(2), 69 multiLine_SystemTextInputFlags = iBit(2),
70 returnSend_SystemTextInputFlags = iBit(3), 70 returnGo_SystemTextInputFlags = iBit(3),
71 disableAutocorrect_SystemTextInputFlag = iBit(4), 71 returnSend_SystemTextInputFlags = iBit(4),
72 alignRight_SystemTextInputFlag = iBit(5), 72 disableAutocorrect_SystemTextInputFlag = iBit(5),
73 alignRight_SystemTextInputFlag = iBit(6),
73}; 74};
74 75
75iDeclareType(SystemTextInput) 76iDeclareType(SystemTextInput)
76iDeclareTypeConstructionArgs(SystemTextInput, int flags) 77iDeclareTypeConstructionArgs(SystemTextInput, iRect rect, int flags)
77 78
78void setRect_SystemTextInput (iSystemTextInput *, iRect rect); 79void setRect_SystemTextInput (iSystemTextInput *, iRect rect);
79void setText_SystemTextInput (iSystemTextInput *, const iString *text); 80void setText_SystemTextInput (iSystemTextInput *, const iString *text);
@@ -81,3 +82,4 @@ void setFont_SystemTextInput (iSystemTextInput *, int fontId);
81void setTextChangedFunc_SystemTextInput (iSystemTextInput *, void (*textChangedFunc)(iSystemTextInput *, void *), void *); 82void setTextChangedFunc_SystemTextInput (iSystemTextInput *, void (*textChangedFunc)(iSystemTextInput *, void *), void *);
82 83
83const iString * text_SystemTextInput (const iSystemTextInput *); 84const iString * text_SystemTextInput (const iSystemTextInput *);
85int preferredHeight_SystemTextInput (const iSystemTextInput *);