[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 15:58:31 +0200

Hi,

On 24.04.2012 15:53, hey68 you wrote:
#include"tracker_private.h"

Later in the code, I see ...

                switch (action) {
                        case B_MINIMIZE_WINDOW:
                                do_minimize_team(zoomRect, team, doZoom&&  
index == 0);
                                break;

                        case B_BRING_TO_FRONT:
                                do_bring_to_front_team(zoomRect, team, doZoom&& 
 index == 0);
                                break;

I'm guessing that this is how the Deskbar does the magic of show/hide all....

Is there a similar public API? Is there any way to get access to this private 
header in my App?

It really sounds like this functionality should be moved into BRoster. But then your Dock would be compatible only with most recent nightlies where this change was made.

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.

Best regards,
-Stephan

Other related posts: