kas-gui / kas

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

Widget traits: direct impl in ListView, revisions, RootWidget→Window #393

Closed dhardy closed 1 year ago

dhardy commented 1 year ago

Another small follow-up on #391, #392. This should be the last before making controversial changes (associated input data).

The most significant change here is that ListView and MatrixView now implement the Widget trait directly. This will not be supported outside of Kas libraries. Motivation: allow everything else to use a simpler variant of fn nav_next, which can also now be moved to the Layout trait. (We could, in the future, provide an alternative which allows the extra functionality required by ListView without use of hidden internals, but I'm not convinced of the need.)

dhardy commented 1 year ago

Bonus content: turn RootWidget into a Window, replacing trait Window.