summaryrefslogtreecommitdiff
path: root/src/ui/inputwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/inputwidget.h')
-rw-r--r--src/ui/inputwidget.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ui/inputwidget.h b/src/ui/inputwidget.h
index 825d0118..01f4efc3 100644
--- a/src/ui/inputwidget.h
+++ b/src/ui/inputwidget.h
@@ -32,7 +32,7 @@ enum iInputMode {
32 overwrite_InputMode, 32 overwrite_InputMode,
33}; 33};
34 34
35void setHint_InputWidget (iInputWidget *, const iString *hintText); 35void setHint_InputWidget (iInputWidget *, const char *hintText);
36void setSensitive_InputWidget(iInputWidget *, iBool isSensitive); 36void setSensitive_InputWidget(iInputWidget *, iBool isSensitive);
37void setMode_InputWidget (iInputWidget *, enum iInputMode mode); 37void setMode_InputWidget (iInputWidget *, enum iInputMode mode);
38void setMaxLen_InputWidget (iInputWidget *, size_t maxLen); 38void setMaxLen_InputWidget (iInputWidget *, size_t maxLen);
@@ -43,3 +43,9 @@ void begin_InputWidget (iInputWidget *);
43void end_InputWidget (iInputWidget *, iBool accept); 43void end_InputWidget (iInputWidget *, iBool accept);
44 44
45const iString * text_InputWidget (const iInputWidget *); 45const iString * text_InputWidget (const iInputWidget *);
46
47iLocalDef iInputWidget *newHint_InputWidget(size_t maxLen, const char *hint) {
48 iInputWidget *d = new_InputWidget(maxLen);
49 setHint_InputWidget(d, hint);
50 return d;
51}