Closed pekim closed 1 year ago
I don't think there is. I've had a task on my list for a while now to create a way to save & restore an existing dock's arrangement of content, but obviously haven't gotten around to it. If you can come up with a nice way to make that a possibility, that would be very worthwhile.
What you have above should work fine for walking the basic structure.
I want to persist a
Dock
's content, and restore it on application start. I want layouts' horizontal/vertical, divider position, and nested layouts and containers. While it might be possible to infer the structure from creative use of existing functions, it doesn't appear to be straightforward or intuitive.This
DockLayout
method would allow me to walk the hierarchy of aDock
's layouts and containers.Before I open a pull request, is there a straightforward means of achieving something similar with the existing API?