diff options
Diffstat (limited to 'src/ui/inputwidget.h')
-rw-r--r-- | src/ui/inputwidget.h | 8 |
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 | ||
35 | void setHint_InputWidget (iInputWidget *, const iString *hintText); | 35 | void setHint_InputWidget (iInputWidget *, const char *hintText); |
36 | void setSensitive_InputWidget(iInputWidget *, iBool isSensitive); | 36 | void setSensitive_InputWidget(iInputWidget *, iBool isSensitive); |
37 | void setMode_InputWidget (iInputWidget *, enum iInputMode mode); | 37 | void setMode_InputWidget (iInputWidget *, enum iInputMode mode); |
38 | void setMaxLen_InputWidget (iInputWidget *, size_t maxLen); | 38 | void setMaxLen_InputWidget (iInputWidget *, size_t maxLen); |
@@ -43,3 +43,9 @@ void begin_InputWidget (iInputWidget *); | |||
43 | void end_InputWidget (iInputWidget *, iBool accept); | 43 | void end_InputWidget (iInputWidget *, iBool accept); |
44 | 44 | ||
45 | const iString * text_InputWidget (const iInputWidget *); | 45 | const iString * text_InputWidget (const iInputWidget *); |
46 | |||
47 | iLocalDef iInputWidget *newHint_InputWidget(size_t maxLen, const char *hint) { | ||
48 | iInputWidget *d = new_InputWidget(maxLen); | ||
49 | setHint_InputWidget(d, hint); | ||
50 | return d; | ||
51 | } | ||