diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-07-20 09:01:25 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-07-20 09:01:25 +0300 |
commit | dc1528e89d48947780e00fc1a49ce57cccdfbfe5 (patch) | |
tree | 4bd888f70dcf7bdd3ad166b43176232c42920594 /src/ui/inputwidget.h | |
parent | 3ccdfae64b82d9716de1f94f7d81de9c8765b607 (diff) |
Revising InputWidget
`InputWidget` needs to be better at handling multiple lines. The previous implementation assumed that the content was short enough to be fully redrawn each frame, which is not a great idea when you have thousands of lines.
Diffstat (limited to 'src/ui/inputwidget.h')
-rw-r--r-- | src/ui/inputwidget.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/inputwidget.h b/src/ui/inputwidget.h index c70d9ad6..4fb2c9dc 100644 --- a/src/ui/inputwidget.h +++ b/src/ui/inputwidget.h | |||
@@ -47,9 +47,9 @@ void setMaxLen_InputWidget (iInputWidget *, size_t maxLen); | |||
47 | void setText_InputWidget (iInputWidget *, const iString *text); | 47 | void setText_InputWidget (iInputWidget *, const iString *text); |
48 | void setTextCStr_InputWidget (iInputWidget *, const char *cstr); | 48 | void setTextCStr_InputWidget (iInputWidget *, const char *cstr); |
49 | void setFont_InputWidget (iInputWidget *, int fontId); | 49 | void setFont_InputWidget (iInputWidget *, int fontId); |
50 | void setCursor_InputWidget (iInputWidget *, size_t pos); | 50 | //void setCursor_InputWidget (iInputWidget *, size_t pos); |
51 | void setContentPadding_InputWidget (iInputWidget *, int left, int right); /* only affects the text entry */ | 51 | void setContentPadding_InputWidget (iInputWidget *, int left, int right); /* only affects the text entry */ |
52 | void setMaxLayoutLines_InputWidget (iInputWidget *, size_t maxLayoutLines); | 52 | void setLineLimits_InputWidget (iInputWidget *, int minVis, int maxVis); |
53 | void setValidator_InputWidget (iInputWidget *, iInputWidgetValidatorFunc validator, void *context); | 53 | void setValidator_InputWidget (iInputWidget *, iInputWidgetValidatorFunc validator, void *context); |
54 | void setEnterInsertsLF_InputWidget (iInputWidget *, iBool enterInsertsLF); | 54 | void setEnterInsertsLF_InputWidget (iInputWidget *, iBool enterInsertsLF); |
55 | void setEnterKeyEnabled_InputWidget (iInputWidget *, iBool enterKeyEnabled); | 55 | void setEnterKeyEnabled_InputWidget (iInputWidget *, iBool enterKeyEnabled); |