[haiku-3rdparty-dev] Re: Show Minimized Windows - how to?

  • From: Stephan Aßmus <superstippi@xxxxxx>
  • To: haiku-3rdparty-dev@xxxxxxxxxxxxx
  • Date: Tue, 24 Apr 2012 16:12:02 +0200

On 24.04.2012 16:01, Rene Gollent wrote:
On Tue, Apr 24, 2012 at 9:58 AM, Stephan Aßmus<superstippi@xxxxxx>  wrote:
You can of course search the source tree for this header, include it in your
app, and the functionality exists when you link against libtracker. Then
your app would be no different from how Deskbar does it.

That one actually doesn't come from tracker_private.h at all. It's
declared in headers/private/interface/WindowInfo.h and implemented in
InterfaceDefs.cpp . Should be able to access it by just copying the
associated declarations for now though, with the obvious caveats about
compatibility risks of using private APIs, but until we add a public
one for it that's unavoidable.

Forgot to mention... you can of course use only public APIs, i.e. scripting just like the YAB app did it ("hey" only uses public APIs). You'd have to study the BeBook chapters on scripting a bit, and then translate your hey script into C++ calls using the scripting API. You can also try to search for the implementation of the private APIs that Deskbar uses, and find out whether this implementation in turn only uses public APIs and then copy it, if need be. May result in the same thing. But code duplication is never a good thing, so sending a patch that moves the features into BRoster is probably what's best for the project. :-)

Best regards,
-Stephan

Other related posts: