diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-06 08:28:58 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-06 08:28:58 +0200 |
commit | a73b54d8ab2164984c884caafb2e8f53d6557133 (patch) | |
tree | 2f0b2ff5dda324a379c6f9b6e37a918cd9fc3a58 /src/ui/inputwidget.c | |
parent | 78dcb6d388155454cfd042072419eb03080ad57d (diff) |
Mobile: Widget interaction and appearance
Overflow-scrollable allows momentum scrolls. Adjusting fonts in phone sheets.
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 11ea0674..267ccdf7 100644 --- a/src/ui/inputwidget.c +++ b/src/ui/inputwidget.c | |||
@@ -165,6 +165,11 @@ void deinit_InputWidget(iInputWidget *d) { | |||
165 | deinit_Array(&d->text); | 165 | deinit_Array(&d->text); |
166 | } | 166 | } |
167 | 167 | ||
168 | void setFont_InputWidget(iInputWidget *d, int fontId) { | ||
169 | d->font = fontId; | ||
170 | updateMetrics_InputWidget_(d); | ||
171 | } | ||
172 | |||
168 | static void pushUndo_InputWidget_(iInputWidget *d) { | 173 | static void pushUndo_InputWidget_(iInputWidget *d) { |
169 | iInputUndo undo; | 174 | iInputUndo undo; |
170 | init_InputUndo_(&undo, &d->text, d->cursor); | 175 | init_InputUndo_(&undo, &d->text, d->cursor); |