Replies: 1 comment
-
Whoops just saw this (my inbox is flooded with CI failed emails) I came up with the idea of layout managers as a spur-of-the-moment thing without much thought put into it. Now that you've mentioned it, they do seem very redundant. It's essentially proxying for any given layout generator(s) I'm interested in the idea of composable layouts. #271 is transitioning to a tree-based layout system, which leans into the idea of composing |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Every
LayoutManager
can be trivially implemented as aLayoutGenerator
by delegating the call to the underlyingLayoutGenerator
instead of returning it, with no worse performance (I think it would even be better because it saves an ipc roundtrip each call).LayoutGenerator
s are composable and flexible in a wayLayoutManager
s aren't, because they allow you to combineLayoutGenerator
in other ways than "one is active". Some examples of what this enables:CyclingLayoutGenerator
(You can workaround it by having a
LayoutManager
that delegates to a singleLayoutGenerator
, but at this point you're fighting the api and lose bulitinLayoutManager
s)Beta Was this translation helpful? Give feedback.
All reactions