Re: [java-gnome-hackers] org.gnome.gdk.EventButton.getX()/getY(): double vs int
Brought to you by:
afcowie
From: Stefan P. <st...@pr...> - 2008-10-06 20:38:15
|
Hi, Am Montag, den 06.10.2008, 15:33 -0400 schrieb Gerald Butler: > Is it possible to have fractional mouse locations reported under > various coordinate transformation matrixes? Perhaps when things like > "Multi-Touch" become wide-spread? What does the underlying GTK API > have to say about this? Nearly nothing. gdouble x; the x coordinate of the pointer relative to the window. is all I can find in the API docs for that type. Regarding transformation: The only way that I can imagine coordinate transformation leading to non-integer values is for example when a kind of magnifying glass follows the mouse cursor so that the screen pixels may not match application pixels. (Just a quick thought - might prove false when you think closer about it.) But even dropping the fractional part or rounding it seems ok. Plus: We avoid confusion for application developers. Cheers, Stefan |