kas-gui / kas

Another GUI toolkit
Apache License 2.0
892 stars 27 forks source link

Expand AdaptConfigCx, AdaptEventCx #423

Closed dhardy closed 6 months ago

dhardy commented 6 months ago

AdaptEventCx now includes input data. Motivation: reduce the parameter count to various closures. Caveats:

Edit: the above provide sufficient motivation not to do this. Instead, data is passed separately with a few exceptions (namely Adapt::on_message which is frequently used, (so far) never wants input data, and can be replaced by the lower-level Adapt::on_messages method where data is needed).

These types are now used by AdaptWidget, Grid and List.

Add fns map_message and on_message to Grid and List.

Rename OnUpdateAdaptEvents.