diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-07-21 15:06:52 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-07-21 15:07:38 +0300 |
commit | d773b499e595a43b9b1ae449262dcf13cabf2d02 (patch) | |
tree | b1baeb12025a04f8316636b5d0ab18e30ceedb2c /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.h | 20 |
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 | |||
5 | iDeclareWidgetClass(InputWidget) | ||
6 | iDeclareObjectConstructionArgs(InputWidget, size_t maxLen) | ||
7 | |||
8 | enum iInputMode { | ||
9 | insert_InputMode, | ||
10 | overwrite_InputMode, | ||
11 | }; | ||
12 | |||
13 | void setMode_InputWidget (iInputWidget *, enum iInputMode mode); | ||
14 | void setMaxLen_InputWidget (iInputWidget *, size_t maxLen); | ||
15 | void setText_InputWidget (iInputWidget *, const iString *text); | ||
16 | void setCursor_InputWidget (iInputWidget *, size_t pos); | ||
17 | void begin_InputWidget (iInputWidget *); | ||
18 | void end_InputWidget (iInputWidget *, iBool accept); | ||
19 | |||
20 | const iString * text_InputWidget (const iInputWidget *); | ||