Hi, I’ve recently discovered the unique feature of Haiku which is Stack & Tile. I find it most useful when programming as I can merge all Paladin windows into one as on this screenshot:
In my opinion we should add API, that would add possibility for developers to use this feature from the application side.
This could be used in Paladin so for example, when choosing “MainWindow.cpp” from main Paladin window, it would automatically merge Pe with main window. If errors were generated when compiling, Paladin would stick the “Error and warnings” window to the bottom.
The second use of this API would be in web browser. I think that this one is obvious: when opening new tab, browser would actually create a new window and stack it with the original one, so it would look like this:
The idea of an S&T API has been around about as long as the feature itself. See ticket #7868.
But so have been various tickets dealing with bugs and enhancements in that area…
Why isn’t there an official API yet? I don’t know. Maybe creating a good API is hard and the devs decided to do it after the R1 release. Which got delayed and delayed, and here we are.
There is, however, a bit of private API you can have a look at or use as starting point to experiment with and improve upon. Just be aware that it’s private and not stable!
As an example, you can check out the Netsurf browser from HaikuDepot, which already uses stacking for its windows.
I didn’t expect that ! Anyway, I am beginning developer, so I don’t know even how to use private headers…
I will try to play with this API and maybe I will be able to do something useful with it.