Commit Graph

69 Commits

Author SHA1 Message Date
Samuel Guerra 6959b455dc Started re-implementing headless rendering. 2021-09-03 01:09:24 -03:00
Samuel Guerra 0292ba0375 Refactored StateMap to request a key value. Changed StateKey to enforce that the key is Copy. 2021-07-30 19:03:27 -03:00
Samuel Guerra 178bf48906 Fixed tests. 2021-07-22 13:53:13 -03:00
Samuel Guerra 583fed513f Started implementing Length::Expr. 2021-07-21 23:11:08 -03:00
Samuel Guerra f0b09b2eae Implemented scoped command handler for window inspect. 2021-07-21 00:33:46 -03:00
Samuel Guerra 046ef4a45d Added Shortcuts.contains that takes by copy. 2021-07-06 23:48:19 -03:00
Samuel Guerra b390a19eb5 Added more docs, fixed WithVarsRead method name and Sealed Var, refactored var binding primitive to work with any number of vars.
Pevious commit missed these changes.
2021-07-06 22:32:44 -03:00
Well 22a4ef4d9c Implemented can_$command property that uses var. 2021-07-06 01:15:04 -03:00
Samuel Guerra 5a707e4705 Implemented `command_property!` for generating command handling properties, not fully documented. 2021-07-04 01:10:51 -03:00
Well 62c5f86d37 Implemented InspectCommand. InspectCommand and CloseCommand (was CloseWindowCommand) are now found in the window widget's module, under commands. 2021-07-02 00:40:03 -03:00
Well 3554fc9158 Added ContextMenuCommand (representation). Added name_with_shortcut method for CommandNameExt, although it's currently non-functional. 2021-06-30 01:20:06 -03:00
Samuel Guerra eda29d2af4 Refactored core event sources to use our own events too.
Calling then "raw-events", this removes the winit events from all public APIs and enable event faking by default.
2021-06-29 21:46:20 -03:00
Samuel Guerra ae2ace8d1d Implemented var async methods. 2021-06-26 16:14:05 -03:00
Samuel Guerra 4d20c656d9 Updated all *event* functions to use handlers. 2021-06-25 01:30:38 -03:00
Well 79142cf332 Continued implementation work on CloseWindowCommand and Commands in general. 2021-06-24 01:21:46 -03:00
Samuel Guerra fe598d84e4 Reorganized handlers, started implementing app context handlers. 2021-06-23 23:13:00 -03:00
Samuel Guerra 52dbd743cb Fixed typo. 2021-06-23 01:12:18 -03:00
Samuel Guerra 1aca0ce515 Implemented shortcut metadata (not handling). Added command metadata docs template. 2021-06-23 01:10:40 -03:00
Samuel Guerra f055972829 Refactored deadline timers, added some more timer docs. 2021-06-22 23:37:06 -03:00
Samuel Guerra fa9c0356c7 Unified handles to use the same inner type implementation. 2021-06-22 22:05:10 -03:00
Samuel Guerra b527f5684f Added more commands docs. 2021-06-22 12:31:48 -03:00
Well 2090aae21c Continued implementing command (init_name and init_info) and started adding some commands.
Fixed visibility/privacy errors when using command! from another file.
2021-06-22 01:24:09 -03:00
Samuel Guerra 992dc6d182 Implemented EventHandler<A>. 2021-06-21 23:00:40 -03:00
Samuel Guerra e421dae242 Finished vars adapters. 2021-06-18 22:34:28 -03:00
Samuel Guerra 61709bc6d1 Started implemented Vars adapters and more varaible helper methods. 2021-06-18 19:11:25 -03:00
Samuel Guerra e28ef389d6 Refactored Event to take self in methods. 2021-06-16 01:11:33 -03:00
Samuel Guerra 6bd7381cab Improved services to allow registering at any time and to generate an extension method for Services for each service. 2021-06-11 21:00:08 -03:00
Samuel Guerra 43ebbcd40b Fixed ctx tasks initialization, now the task is available in the closure before it returns the future too. 2021-06-11 16:06:03 -03:00
Samuel Guerra 99a347b20a Merge branch 'master' of https://gitlab.com/sam.rodr.g/zero-ui 2021-06-11 00:42:30 -03:00
Samuel Guerra cf7dfe90d0 fmt 2021-06-10 21:01:47 -03:00
Well 27cd41fade Fixed type and implemented default property value for on(_pre)_init_async. 2021-06-09 23:52:15 -03:00
Samuel Guerra 15322478d5 Implemented app run_async, implemented more window events, including on_open_async, implemented on_init_async, added arguments for widget events. 2021-06-09 18:05:09 -03:00
Samuel Guerra 3a04faf38a Implemented most of the new timers API. 2021-06-06 01:09:33 -03:00
Samuel Guerra 94fde538c6 Inline methods in the hot path of --release event handlers. 2021-06-02 12:21:13 -03:00
Well d6a6b1de53 Fixed click_shortcut. 2021-06-02 01:00:21 -03:00
Samuel Guerra dda53b79a3 Fixed docs. 2021-06-01 22:24:53 -03:00
Samuel Guerra aa43fb2a6f Simplified event update. 2021-06-01 20:11:21 -03:00
Samuel Guerra 82e158dcf4 Fixed tests and bugs found by tests. 2021-06-01 01:01:52 -03:00
Samuel Guerra 46d9348a0e Removed old event channel stuff, one time response events now use ResponderVar. 2021-05-31 21:47:00 -03:00
Samuel Guerra 9de6637455 Fixed capture_mouse property. 2021-05-31 15:41:55 -03:00
Samuel Guerra 3a9c602cca Removed event pressure concept. 2021-05-31 15:13:52 -03:00
Samuel Guerra 82f1335c5c Fixed is_state properties. 2021-05-31 14:05:51 -03:00
Samuel Guerra cc4572a043 Fixed widget context in event. 2021-05-31 01:01:42 -03:00
Samuel Guerra 8c458962a1 Updated all events to new mode, mouse events are boken. 2021-05-31 00:48:09 -03:00
Samuel Guerra 2bae957995 Refactored UiNode and Widget boxing to use new way of doing it. 2021-05-30 18:54:16 -03:00
Samuel Guerra 03ee0c8614 Started implementing new simpler event handling idea. 2021-05-30 15:34:29 -03:00
Samuel Guerra fe2ece4f37 Refactored FontVariations to be backed by a Vec. 2021-05-28 22:44:10 -03:00
Samuel Guerra 68c8d25218 Added some notes. 2021-05-28 17:47:07 -03:00
Samuel Guerra 7b5c792897 Implemented font_features and font_variations, not the most efficient but fully functional. 2021-05-28 01:06:45 -03:00
Samuel Guerra e792aacc82 Implemented most of FontVariations.
Fixed ContextVar in layout and render.
2021-05-27 22:50:29 -03:00