Commit Graph

2626 Commits

Author SHA1 Message Date
Samuel Guerra 26234e7b36 Fixed text deinit and reinit. 2023-12-31 01:22:58 -03:00
Samuel Guerra 01a198e693 Fixed text editor example. 2023-12-31 00:02:33 -03:00
Samuel Guerra 456cd19c44 Merging. 2023-12-30 23:15:29 -03:00
Samuel Guerra 7af0065a9b Fixed tests. 2023-12-30 22:56:22 -03:00
Samuel Guerra 3ed50bfdf2 Refactored resolve_text and layout_text into separate functions that all use the new RwLock contexts. 2023-12-30 20:16:22 -03:00
Samuel Guerra b5714ecd5d Implemented hotspot based interactive caret for touch events.
Identified issue with current text internals context architeture.
2023-12-29 21:23:02 -03:00
Well b001ab6aa7 Continued implementing interactive caret hotspot.
Added helper functions.
2023-12-29 19:07:20 -03:00
Samuel Guerra ee71e6a90e Added TODO. 2023-12-29 17:41:34 -03:00
Samuel Guerra c04729ac99 Fixed cursor showing for widget that is not allowed by the current pointer capture. 2023-12-29 17:33:52 -03:00
Samuel Guerra 1e8379467f Fixed interactive caret in bidi text. 2023-12-29 16:23:09 -03:00
Samuel Guerra 968f82b375 Implemented mouse dragging for interactive carets. 2023-12-29 15:31:30 -03:00
Samuel Guerra 019b3efb1d Refactored `touch_carets` into `interactive_carets` that can be optionally enabled for non-touch events.
This is mostly for testing, but some apps do always show the interactive caret (the Calibre e-book reader for example).
2023-12-29 13:02:56 -03:00
Samuel Guerra 7954b757ae Fixed RTL and bidi selection. 2023-12-28 18:40:10 -03:00
Samuel Guerra 1a2afec230 Fixed chromatic slerp. 2023-12-28 01:40:31 -03:00
Well 3df89bc362 TODO. 2023-12-27 19:19:37 -03:00
Well 3c6e6969b0 Fixed selection toolbar not closing when the window loses focus if it was not focusable. 2023-12-27 18:29:30 -03:00
Samuel Guerra 26cd49ffc2 Added TODO. 2023-12-27 17:57:52 -03:00
Samuel Guerra e00f4f3787 Winit update fixed IME issues. 2023-12-27 16:13:29 -03:00
Samuel Guerra d66573f17c Refactored Text internals API.
Now use TEXT to access the ResolvedText and LaidoutText, also renamed to LaidoutText because
`TEXT.laidout` is more clear that it is not about requesting layout.
2023-12-27 15:26:29 -03:00
Samuel Guerra 9ec3a1d94b Implemented strong typed var hook. 2023-12-27 11:38:30 -03:00
Samuel Guerra cb027f97c3 Fixed inspector cursor. 2023-12-27 00:33:52 -03:00
Samuel Guerra 1e297ec2ee Fixed grid layout when one dimension is "leftover" and the other is "default". 2023-12-27 00:01:12 -03:00
Samuel Guerra dd011de754 Added TODO. 2023-12-26 20:50:15 -03:00
Samuel Guerra 9ea8f33cd7 Added TODO. 2023-12-26 17:24:55 -03:00
Samuel Guerra 17ec6b7721 Disable SELECT_ALL_CMD when text is empty. 2023-12-26 16:57:04 -03:00
Samuel Guerra 5de9493e84 Improved command window scope. Command properties set on the window root widget now automatically also handles the window scope. 2023-12-24 15:37:17 -03:00
Samuel Guerra d51a751dc8 More main docs. 2023-12-24 12:52:17 -03:00
Samuel Guerra e72804228c More main docs. 2023-12-23 20:22:23 -03:00
Samuel Guerra 3befd13c33 Show toolbar on long press when the text is empty. 2023-12-22 17:15:41 -03:00
Well ee9c31dc9d Implemented `is_touch` in `SelectionToolbarArgs` and changed the default selection toolbar to only open on touch interactions. 2023-12-21 18:49:21 -03:00
Samuel Guerra 2fdfc7b55b Fixed popup interaction when opened from inside a modal widget. 2023-12-21 16:05:07 -03:00
Samuel Guerra 3edebe60f3 Fixed modal losing filter when info is rebuild for the widget that registered the filter. 2023-12-21 12:01:02 -03:00
Samuel Guerra e06de9a501 TODO update. 2023-12-21 01:19:36 -03:00
Samuel Guerra cf128130c0 Implemented `SelectableText!` a better alternative to only enabling txt_selectable on Text! widgets. It is styleable, has the focus decorator and context-menu, it is also the implementer of the default selection toolbar. 2023-12-21 00:42:43 -03:00
Samuel Guerra af46b10fdf Add TODO. 2023-12-20 20:48:46 -03:00
Well 82385aa4ad Implemented support for dynamic `SELECTION_TOOLBAR_ANCHOR_VAR`.
Changed selection toolbar properties to be intrinsic to the `Text!` widget and descendants.
2023-12-19 18:56:47 -03:00
Samuel Guerra e67940645f Implemented selection touch caret. 2023-12-19 12:35:02 -03:00
Samuel Guerra aa3d1c5b69 Started implementing caret touch drag. 2023-12-19 00:32:12 -03:00
Samuel Guerra b014e3bd0e Implemented `cursor_img` in anticipation of winit update. 2023-12-18 01:34:58 -03:00
Samuel Guerra 99801f8a62 FInished prelude cleanup. 2023-12-17 01:11:07 -03:00
Samuel Guerra 5d003ff675 Fixed accessibility update. 2023-12-16 18:54:33 -03:00
Samuel Guerra 2f49fbdf3a Root hit-test items outside the root inner already log an error. 2023-12-16 15:14:33 -03:00
Samuel Guerra 4b3e4750d0 Probably fixed issue of repeated updates before first render. 2023-12-16 14:55:46 -03:00
Samuel Guerra 9120fc7f69 Added scale_factor trace again, previous on hook did not work because hook only called for actual value changes. 2023-12-15 22:56:31 -03:00
Samuel Guerra e243ccae66 Renamed `instance` and `nodes` to `node`, renamed `commands` to `cmd`. 2023-12-15 22:11:38 -03:00
Samuel Guerra 56686fa46f Transforms stay in layout because they affect inner-bounds. 2023-12-15 14:38:39 -03:00
Samuel Guerra d3304b07eb Moved presenter nodes to -wgt crate. 2023-12-15 13:46:47 -03:00
Samuel Guerra 9ac348cd6d Moved ObservableVec to -var crate. 2023-12-15 12:05:46 -03:00
Samuel Guerra 483c3774bf Moved WidgetFn to -wgt crate. 2023-12-15 11:38:05 -03:00
Samuel Guerra e303b38cb6 Var of Factor issue happened again. 2023-12-14 23:38:32 -03:00