summaryrefslogtreecommitdiff
path: root/src/ui/inputwidget.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-07-21 15:06:52 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-07-21 15:07:38 +0300
commitd773b499e595a43b9b1ae449262dcf13cabf2d02 (patch)
treeb1baeb12025a04f8316636b5d0ab18e30ceedb2c /src/ui/inputwidget.h
Initial commit
Borrowing the app skeleton from Bitwise Harmony.
Diffstat (limited to 'src/ui/inputwidget.h')
-rw-r--r--src/ui/inputwidget.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/ui/inputwidget.h b/src/ui/inputwidget.h
new file mode 100644
index 00000000..b606f974
--- /dev/null
+++ b/src/ui/inputwidget.h
@@ -0,0 +1,20 @@
1#pragma once
2
3#include "widget.h"
4
5iDeclareWidgetClass(InputWidget)
6iDeclareObjectConstructionArgs(InputWidget, size_t maxLen)
7
8enum iInputMode {
9 insert_InputMode,
10 overwrite_InputMode,
11};
12
13void setMode_InputWidget (iInputWidget *, enum iInputMode mode);
14void setMaxLen_InputWidget (iInputWidget *, size_t maxLen);
15void setText_InputWidget (iInputWidget *, const iString *text);
16void setCursor_InputWidget (iInputWidget *, size_t pos);
17void begin_InputWidget (iInputWidget *);
18void end_InputWidget (iInputWidget *, iBool accept);
19
20const iString * text_InputWidget (const iInputWidget *);