[openbeos] Re: Tracker icons

  • From: Stephan Aßmus <superstippi@xxxxxx>
  • To: openbeos@xxxxxxxxxxxxx
  • Date: Wed, 20 Jul 2005 19:03:27 +0200

Hi,

> > The current API is also more or less fixed to B_CMAP8.

Not at all. At least not the one from BNodeInfo.

> GetTrackerIcon returns a BBitmap - I was just proposing adding another
> enum member to return a bigger bitmap with a non CMAP8 colorspace.
> B_MINI_ICON and B_LARGE_ICON would still be kept for backwards
> compatibility, and would still be CMAP8 of course.

Well, it is even simpler than that. Yes, we could add another constant, but 
notice that the BBitmap is not returned, but supplied by the caller. So if 
an application simply provided a B_RGBA32 bitmap, the function could render 
a high quality icon, no matter the requested size. The API is actually no 
restriction at all. Even the size of the icon is actually given by the 
BBitmap, we don't even have to care about the icon_size constant, it could 
merely specify the source for the bitmap.

Best regards,
-Stephan

Other related posts: