Re: Behavior API proof of concept PR

2023-12-02 Thread John Hendrikx
Hi list, I've done another update to the proof of concept PR for Behaviors, this time focusing a bit on allowing behavior extension.  I added a ToggleButtonBehavior that is an extension of a ButtonBaseBehavior. I tweaked some generics to make this possible, and changed a few API's slightly. 

Re: Behavior API proof of concept PR

2023-12-01 Thread John Hendrikx
I've updated the proof of concept PR, and it has a number of changes to allow more reuse of the behaviors handlers and key bindings.  This has resulted in the Behavior installation process to become a bit more complex, but the actual use and the API's are still relatively simple.  For example,

Re: Behavior API proof of concept PR

2023-11-30 Thread John Hendrikx
Thanks for having a look! On 30/11/2023 19:47, Andy Goryachev wrote: I think BehaviorContext looks suspiciously like a (skin) input map, so I would rather see that. Invention of State class is a way to work around the stateless behavior which, though it adds (in my opinion) very little, mig

Re: Behavior API proof of concept PR

2023-11-30 Thread Andy Goryachev
I think BehaviorContext looks suspiciously like a (skin) input map, so I would rather see that. Invention of State class is a way to work around the stateless behavior which, though it adds (in my opinion) very little, might still be a feature that app developers want to exploit - at least in t