Francisco Vallarino
a597abd96d
Add support for cutting text
2020-12-20 20:54:54 -03:00
Francisco Vallarino
15261c3df8
Fix unit tests. Remove hedgehog-classes dependency and related utilities module
2020-12-18 00:22:29 -03:00
Francisco Vallarino
a757e56c09
Handle listView item style change when clicking an item
2020-12-17 14:41:42 -03:00
Francisco Vallarino
94a3fa766e
Simplify Renderers image interface. Replace existsImage with getImage
2020-12-16 23:53:55 -03:00
Francisco Vallarino
86ca5efd80
Add config/theming options to scroll
2020-12-15 23:54:51 -03:00
Francisco Vallarino
ce9f16f4b6
Add config option to customize main mouse button
2020-12-15 20:43:29 -03:00
Francisco Vallarino
70a0ff8cb5
Find new focus when zstack items change visibility and it is parent of focus
2020-12-15 18:31:50 -03:00
Francisco Vallarino
c97dce766c
Set focus when ButtonAction (PressedBtn) is received, not on click (most applications/OS follow this pattern)
2020-12-15 14:38:05 -03:00
Francisco Vallarino
eaf31364f4
Fix issue when splitting multi line text
2020-12-15 00:35:33 -03:00
Francisco Vallarino
2532db1625
Remove unused field from listView state
2020-12-14 16:00:38 -03:00
Francisco Vallarino
0899d2dcf4
Add renderAfter method in Container, use it in scroll
2020-12-14 12:51:32 -03:00
Francisco Vallarino
e9da76f812
Go back to old widgetUpdateSizeReq signature
2020-12-13 21:13:59 -03:00
Francisco Vallarino
a9bd6931f6
Revert "Partial commit to rely on offset instead of rebuilding tree when inside a scroll"
...
This reverts commit c456905952
.
2020-12-13 20:30:55 -03:00
Francisco Vallarino
2aa2c1cd3f
Revert "Partial, non working, commit with scrolling changes"
...
This reverts commit b0f6909916
.
2020-12-13 20:30:39 -03:00
Francisco Vallarino
b0f6909916
Partial, non working, commit with scrolling changes
2020-12-13 20:30:21 -03:00
Francisco Vallarino
c456905952
Partial commit to rely on offset instead of rebuilding tree when inside a scroll
2020-12-11 19:10:01 -03:00
Francisco Vallarino
6f2a3759e9
Revert "If child is not visible because of viewport, set info.visible to False"
...
This reverts commit 08ac246177
.
2020-12-08 22:30:47 -03:00
Francisco Vallarino
08ac246177
If child is not visible because of viewport, set info.visible to False
2020-12-08 16:54:26 -03:00
Francisco Vallarino
b2343816dc
Fix size/location issue on dropdown after resize. Add missing strictness annotations (fixes the issue of dropdown list not being evaluated until shown, causing it to be evaluated multiple times at once)
2020-12-08 13:37:58 -03:00
Francisco Vallarino
7d69207d86
Rename WidgetInstance to WidgetNodeInfo. Rename lenses, and most inst/Inst references to info/Info
2020-12-07 23:17:04 -03:00
Francisco Vallarino
9c2b22e2d6
Fix dropdown on blur focus issue. Also avoid setting focus if between Blur/Focus the current focus changed
2020-12-07 17:47:32 -03:00
Francisco Vallarino
a84e447903
Merge children before verifying changes in visibility (Container)
2020-12-07 10:52:30 -03:00
Francisco Vallarino
918b865d48
Revert "Add globalKeys handling"
...
This reverts commit d8c40972dc
.
2020-12-07 00:54:28 -03:00
Francisco Vallarino
d8c40972dc
Add globalKeys handling
2020-12-07 00:48:19 -03:00
Francisco Vallarino
932fd91b23
Add widgetGetInstanceTree method
2020-12-06 19:58:11 -03:00
Francisco Vallarino
34f1e95c3a
Revert "Modify WidgetResult so it provides finer grained control over what is allowed to be changed"
...
This reverts commit 9730e451b0
.
Reverted since getSizeReq/resize still return WidgetNode and it's not easy to change. The benefits of this changeset are also limited
2020-12-06 17:46:32 -03:00
Francisco Vallarino
9730e451b0
Modify WidgetResult so it provides finer grained control over what is allowed to be changed
2020-12-06 17:46:28 -03:00
Francisco Vallarino
f717827969
Add WidgetNode type. Replace usage of WidgetInstance with WidgetNode (in some cases, temporarily). Rename inst/Inst to node/Node
2020-12-05 16:47:19 -03:00
Francisco Vallarino
954d48ac38
Have Container use local keys instead of global (temporary change, later global will also be considered)
2020-12-03 23:47:13 -03:00
Francisco Vallarino
e3b9193906
Reorder fields in WidgetResult, rename helper functions
2020-12-02 23:59:12 -03:00
Francisco Vallarino
9518b2db23
Add test cases for composite. Found and fixed two issues related to updating model, one in composite and the other in Handlers (context no updated)
2020-11-30 18:21:15 -03:00
Francisco Vallarino
8d28b16e55
Create type alias to be used inside composite
2020-11-29 18:44:22 -03:00
Francisco Vallarino
23db93f245
Avoid rebuilding glyphs if renderArea did not change for label
2020-11-29 18:05:01 -03:00
Francisco Vallarino
e5779b10e2
Unpack fields on basic types
2020-11-29 02:52:36 -03:00
Francisco Vallarino
fc5ac86810
Be explicit on listView when requesting initial resize, otherwise it keeps resizing
2020-11-29 00:45:05 -03:00
Francisco Vallarino
7b3f74adb3
Add support to control if updateSizeReq/resize happen in a Container. Use it from listView
2020-11-28 23:23:40 -03:00
Francisco Vallarino
8ca038e6c8
Avoid merge in composite and listView if not necessary
2020-11-28 19:50:17 -03:00
Francisco Vallarino
c5d849b63c
Check if model changed before merging composite
2020-11-26 13:27:13 -03:00
Francisco Vallarino
a790a6ffd6
Refactor instance style initialization and Containers merge
2020-11-25 23:55:27 -03:00
Francisco Vallarino
ce7ce7fc6a
Avoid rendering on every frame if not needed
2020-11-24 23:26:12 -03:00
Francisco Vallarino
6d7c536a2d
Add test cases for text functions
2020-11-22 11:58:42 -03:00
Francisco Vallarino
5fdd78de0b
Update grid to use SizeReq combinators. Avoid MinSize requesting space twice, and update stack. Add more tests
2020-11-21 15:51:15 -03:00
Francisco Vallarino
ab3ed575af
Add tests for listView
2020-11-20 20:28:56 -03:00
Francisco Vallarino
2957f0d688
Do not try to restyle parent if only children hover status changed (scroll related)
2020-11-20 15:50:44 -03:00
Francisco Vallarino
98a3ca50b1
Make fps configurable
2020-11-20 14:43:53 -03:00
Francisco Vallarino
8819aaebe3
Avoid excessive delay on window resize
2020-11-20 01:37:35 -03:00
Francisco Vallarino
f2a7d77f0e
Rename Resize request to ResizeWidgets
2020-11-19 11:28:20 -03:00
Francisco Vallarino
8a16a95ef1
Add support for Window Requests
2020-11-19 11:18:30 -03:00
Francisco Vallarino
3d6d2e44df
Add support for user settings in Theme
2020-11-18 23:01:23 -03:00
Francisco Vallarino
7ab8fa18a4
Properly handle multiline text when first line does not fit
2020-11-18 17:13:00 -03:00