summaryrefslogtreecommitdiff
path: root/src/ui/inputwidget.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-07-20 09:01:25 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-07-20 09:01:25 +0300
commitdc1528e89d48947780e00fc1a49ce57cccdfbfe5 (patch)
tree4bd888f70dcf7bdd3ad166b43176232c42920594 /src/ui/inputwidget.h
parent3ccdfae64b82d9716de1f94f7d81de9c8765b607 (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.h4
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);
47void setText_InputWidget (iInputWidget *, const iString *text); 47void setText_InputWidget (iInputWidget *, const iString *text);
48void setTextCStr_InputWidget (iInputWidget *, const char *cstr); 48void setTextCStr_InputWidget (iInputWidget *, const char *cstr);
49void setFont_InputWidget (iInputWidget *, int fontId); 49void setFont_InputWidget (iInputWidget *, int fontId);
50void setCursor_InputWidget (iInputWidget *, size_t pos); 50//void setCursor_InputWidget (iInputWidget *, size_t pos);
51void setContentPadding_InputWidget (iInputWidget *, int left, int right); /* only affects the text entry */ 51void setContentPadding_InputWidget (iInputWidget *, int left, int right); /* only affects the text entry */
52void setMaxLayoutLines_InputWidget (iInputWidget *, size_t maxLayoutLines); 52void setLineLimits_InputWidget (iInputWidget *, int minVis, int maxVis);
53void setValidator_InputWidget (iInputWidget *, iInputWidgetValidatorFunc validator, void *context); 53void setValidator_InputWidget (iInputWidget *, iInputWidgetValidatorFunc validator, void *context);
54void setEnterInsertsLF_InputWidget (iInputWidget *, iBool enterInsertsLF); 54void setEnterInsertsLF_InputWidget (iInputWidget *, iBool enterInsertsLF);
55void setEnterKeyEnabled_InputWidget (iInputWidget *, iBool enterKeyEnabled); 55void setEnterKeyEnabled_InputWidget (iInputWidget *, iBool enterKeyEnabled);