[haiku-development] Re: Tool Tip B_MOUSE_IDLE message handling needs better fix, help appreciated

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 17 Dec 2013 20:53:29 +0100

Am 17/12/2013 06:58, schrieb looncraz:
You can convert from screen coordinates to the view coordinate space
form within the app_server, however, and it occurs many times in
existing code.  app_server's View.h has ConvertTo/From Screen, etc...

All you need is the view's pointer - not sure if that is a problem for
your uses or not.

We were talking about mouse events, not drawing code.
And no, the app_server cannot convert to View coordinates there, as I explained earlier: it doesn't even know the target view, and a single message can have multiple target views.

Bye,
   Axel.


Other related posts: