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
LayoutManagercan be trivially implemented as aLayoutGeneratorby delegating the call to the underlyingLayoutGeneratorinstead of returning it, with no worse performance (I think it would even be better because it saves an ipc roundtrip each call).LayoutGenerators are composable and flexible in a wayLayoutManagers aren't, because they allow you to combineLayoutGeneratorin other ways than "one is active". Some examples of what this enables:CyclingLayoutGenerator(You can workaround it by having a
LayoutManagerthat delegates to a singleLayoutGenerator, but at this point you're fighting the api and lose bulitinLayoutManagers)Beta Was this translation helpful? Give feedback.
All reactions