diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-25 18:32:54 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-25 18:32:54 +0300 |
commit | 84d3089735bd81a9d628acf416b481f2535765cf (patch) | |
tree | 762303b237cb4d34909a175a2b62bf2ec74d23c6 /src/ui/inputwidget.c | |
parent | 8700c039dc04b4c9f22584d4e901ed372442b0f4 (diff) |
Document side elements; hover outline
Diffstat (limited to 'src/ui/inputwidget.c')
-rw-r--r-- | src/ui/inputwidget.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c index 2d6d84dd..d29548f1 100644 --- a/src/ui/inputwidget.c +++ b/src/ui/inputwidget.c | |||
@@ -204,6 +204,11 @@ static uint32_t cursorTimer_(uint32_t interval, void *w) { | |||
204 | return interval; | 204 | return interval; |
205 | } | 205 | } |
206 | 206 | ||
207 | void selectAll_InputWidget(iInputWidget *d) { | ||
208 | d->mark = (iRanges){ 0, size_Array(&d->text) }; | ||
209 | refresh_Widget(as_Widget(d)); | ||
210 | } | ||
211 | |||
207 | void begin_InputWidget(iInputWidget *d) { | 212 | void begin_InputWidget(iInputWidget *d) { |
208 | iWidget *w = as_Widget(d); | 213 | iWidget *w = as_Widget(d); |
209 | if (flags_Widget(w) & selected_WidgetFlag) { | 214 | if (flags_Widget(w) & selected_WidgetFlag) { |