Commit graph

35 commits

Author SHA1 Message Date
4ffeffdd24 Refactor HandleKeyboardEvent 2024-01-09 12:51:05 -08:00
fc0897906b Fix redrawing text field when foreground or background color is changed 2024-01-05 12:10:28 -08:00
e4087431ad Fix padding 2023-12-17 23:17:55 -08:00
689683b751 Fix right-aligned text 2023-11-27 17:02:27 -08:00
6c28130f61 Update screenshot 2023-11-25 11:12:11 -08:00
79cd61d663 Fix padding 2023-11-25 10:47:41 -08:00
84e89ee44a Fix text alignment 2023-11-24 21:51:18 -08:00
9d8fb2eb01 Further optimize wrapping text 2023-11-22 18:20:58 -08:00
90d1bd4f67 Skip drawing lines that are off-screen 2023-11-21 14:31:35 -08:00
fee1357e1e Optimize wrapping text 2023-11-17 23:31:51 -08:00
6fd655a094 Store incoming text written to the field as []byte 2023-11-17 19:22:43 -08:00
cee763ff9d Defer reflowing and redrawing content when writing 2023-11-17 16:31:11 -08:00
7a69190303 Fix following text when repositioning 2023-11-08 14:56:35 -08:00
08fa5fbe28 Allow specifying font face mutex 2023-11-07 17:35:22 -08:00
a6fd28a6b5 Retry calculating bounds on panic 2023-11-02 12:12:37 -07:00
82bfa35f33 Fallback to text.BoundString 2023-11-01 23:52:13 -07:00
ebfed687fb Fix dragging TextField scroll bar 2023-10-28 12:23:43 -07:00
9bb769038e Allow specifying scroll bar area and handle colors 2023-10-28 00:10:36 -07:00
e3d27e0922 Fix checking for zero value rect 2023-10-27 22:56:25 -07:00
75c3e5625e Allow sending keyboard and mouse events to TextField widgets 2023-10-27 22:00:54 -07:00
5c431f2514 Fix font.BoundString panic 2023-10-24 19:19:22 -07:00
21ce90e7eb Fix wrapping text at small widths 2023-10-24 15:16:04 -07:00
13ac50331d Use font.BoundString 2023-10-24 14:08:38 -07:00
8bc4edaf3b Allow sending raw keyboard events 2023-10-22 12:24:19 -07:00
3fa5b72a50 Do not show cursor by default 2023-10-21 16:07:27 -07:00
6dd617c348 Fix vertical alignment issue 2023-09-28 21:20:29 -07:00
c6af3330a7 Fix font baseline issue 2023-06-08 20:26:48 -07:00
3fb1571641 Fix monospace font wrapping 2023-06-07 21:47:23 -07:00
a7368da290 Fix InputField.Update 2022-07-07 14:41:15 -07:00
953d4984d2 Support using keypad enter key to select input 2022-06-12 13:58:10 -07:00
be02667790 Fix drawing fields containing empty lines 2022-06-09 18:31:31 -07:00
024083b2a8 Clear input buffer when selectedFunc returns true 2022-06-09 18:19:10 -07:00
b37820227a Add SetHorizontal and SetVertical
These methods control how text is aligned within the field.
2022-06-09 13:59:02 -07:00
ed816e4129 Fix SetBackgroundColor 2022-06-08 16:51:36 -07:00
1b44dcda98 Initial commit 2022-03-21 22:14:33 -07:00