Commit Graph

881 Commits

Author SHA1 Message Date
Francisco Vallarino
af4fe933f5 Remove unused language extensions 2020-05-07 17:04:27 -03:00
Francisco Vallarino
f1c2f7fe8a Add vstack, make scroll assign all available space if contained widget is smaller and make textfield claim correct size if text is empty 2020-05-07 17:04:27 -03:00
Francisco Vallarino
7a32b47238 Refactor layout components 2020-05-07 17:04:27 -03:00
Francisco Vallarino
41df700e67 Consider renderArea when resizing 2020-05-07 17:04:27 -03:00
Francisco Vallarino
01b7363f30 Partial commit (working, pending improvements) of resizable grid/hstack 2020-05-07 17:04:27 -03:00
Francisco Vallarino
2c2ce94080 Add state save/restore handling 2020-05-07 17:04:27 -03:00
Francisco Vallarino
23284c8c2e Refactorings 2020-05-07 17:04:27 -03:00
Francisco Vallarino
91cfa8fa82 Refactor large blocks of code into smaller, named, functions. Reuse! 2020-05-07 17:04:27 -03:00
Francisco Vallarino
783a706b61 Add basic handling of custom widget tasks 2020-05-07 17:04:27 -03:00
Francisco Vallarino
616743e3f6 Store path of widget generating an event. Test ideas for async callbacks (file system widget, weather, etc) 2020-05-07 17:04:27 -03:00
Francisco Vallarino
d6d57d7ea7 Allow ignoring children events. Remove commented out code 2020-05-07 17:04:27 -03:00
Francisco Vallarino
4a07c4d5a0 Handle basic scroll wheel movement 2020-05-07 17:04:27 -03:00
Francisco Vallarino
aa6940426f Fix font initialization issue 2020-05-07 17:04:27 -03:00
Francisco Vallarino
b316848600 Basic scrollbar display, minor general improvements and tests that will not stand the test of time 2020-05-07 17:04:26 -03:00
Francisco Vallarino
79faed3625 Refactor render method to receive instance as a single parameter, plus the list of children 2020-05-07 17:04:26 -03:00
Francisco Vallarino
0e48799cc1 Refactor resize method to provide viewport and renderArea, plus the chance of modifying the widget instance 2020-05-07 17:04:26 -03:00
Francisco Vallarino
92a84eb6ba Rename WidgetNode to WidgetInstance. It's a better name and frees WidgetNode to be used where it fits 2020-05-07 17:04:26 -03:00
Francisco Vallarino
6aceb26dd6 Remove unneeded computed style attribute 2020-05-07 17:04:26 -03:00
Francisco Vallarino
3f4b8dee60 Basic renaming 2020-05-07 17:04:26 -03:00
Francisco Vallarino
f7c52c1b93 Set focus state on UI update 2020-05-07 17:04:15 -03:00
Francisco Vallarino
064d57147a Fix several issues 2019-10-15 00:19:49 -03:00
Francisco Vallarino
88aff7f97e Refactor UI update code 2019-10-14 19:19:58 -03:00
Francisco Vallarino
2b69a921f4 Remove unneeded (currently?) argument focused on handleEvent 2019-10-13 13:25:25 -03:00
Francisco Vallarino
a76a65ca47 Only send events to potential handlers, based on focus for keyboard and position for clicks 2019-10-13 00:48:05 -03:00
Francisco Vallarino
fb01a85c27 Direct keyboard events to focused widget 2019-10-07 01:45:46 -03:00
Francisco Vallarino
88c4d82f5c Handle tab key 2019-10-06 16:39:06 -03:00
Francisco Vallarino
d7f161fd57 Use Maybe/Record for event handler result 2019-10-04 18:12:44 -03:00
Francisco Vallarino
3df6cb3786 Go back to MonadState; add _really_ basic focus handling 2019-10-01 01:09:53 -03:00
Francisco Vallarino
78120a8755 Re organize modules and cleanup 2019-09-25 00:15:52 -03:00
Francisco Vallarino
7ed58f2aed Add basic support for TextField 2019-09-24 00:40:28 -03:00
Francisco Vallarino
910a51dbc5 Initial commit 2019-09-23 11:46:21 -03:00