Getting screen coordinate of a window
Michael Grunditz
michael.grunditz at gmail.com
Sun Jan 21 21:24:17 CET 2024
Hello!
Can I get screen coordinates of a window? I would like to be able to
caputure absolute mouse events and convert them to the window coordinate
system. I don't want to have relative mouse movement like I see in many
examples. In my context it doesn't work very well.
BTW the handle_relative_motion never seems to return anything. Is there a
configuration that I need? Would be terific if I could by some function
get window internal coordinates, but handle_relative_motion might not be
something for that?
I also want to know if there are routines better suited than memcpy for
ploting large buffers? I have noticed that if I put something in a loop
without a little delay the system crawls. Is the Gui not preemptive? As
little as 10ns is enough.
I plot 640x480x4. It acts a bit strange. Each second a frame takes less
than 1/60 seconds. There are 3 frames that runs slower and back to quick.
I have nano sleep that is based on that timing.
/Michael
More information about the users
mailing list