Why type gdouble used instead of integer with Gdk_Event_Button?

I’m new to all this GTK stuff.
The documentation in Gdk.EventButton says that x and y are coordinates of the pointer relative to the window.
If I output the coordinates on the terminal I get floating point numbers. As far as I understand, this is about pixels. So why is the type gdouble used for the coordinates instead of integer ?

Because the coordinates are scaled according to the scaling factor of the windowing system surface. The coordinates are in logical pixels, not device pixels.

ok, makes sense. In my current experimenting logical pixels (in gdouble) and device pixels are the same. I’m working on Linux. So for example, ALT-mouse scrolling magnifies the screen but I can’t see a difference. What can I do to see the scaling of the windowing system ?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.