Why are:
andCode:
int globalX () const int globalY () const
Code:
int x () const int y () const
integers? Is it because everything is in terms of pixels?
Printable View
Why are:
andCode:
int globalX () const int globalY () const
Code:
int x () const int y () const
integers? Is it because everything is in terms of pixels?
Yes.
globalX(), globalY() returns position of mouse event from top left SCREEN corner when x(), y() - from top left WINDOW corner.
Thanks, hmm where the origin was surprised me, thanks for elaborating.