[haiku-development] Re: Final Set*UIColor Patch, Version 3e

  • From: Dario Casalinuovo <b.vitruvio@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 6 Dec 2015 15:05:35 +0100


1. Is DelayedMessage acceptable given my previous explanations?
2. If DelayedMessage is not acceptable, what is the alternative offered?
3. Should BColorMap remain?
4. If not, what is the alternative? I see few worthwhile options (see $6)
5. If BColorMap should remain, should it remain a part of the public API?


When the doubt occur, wouldn't be better ATM if we maintain the API private
for now? Most of the new APIs lived as private before to get exposure.


6. Should BMessage get Add/SetColor(color_which, rgb_color) methods?


I've also in a my own app done something similar. I think Axel pointed out
the problem of using an int32 value, I'm not sure on how to correctly
implement this, but looking at how the API is made, it may make sense to
implement them ad int32 and in future a new set of methods/classes might be
provided.


7. Is it possible to find a View by token in the app_server? If so, how?


As said I'm not comfortable of that code, but fastly looking at the backend
representation of windows in the app_server there's a ViewAt() method, I
imagine it will not be so hard to add a method using it to find a view by
id or string, eventually by using an HashMap in the backend instead of a
simple list.

Other related posts: