Re: [java-gnome-hackers] org.gnome.gdk.EventButton.getX()/getY(): double vs int
Brought to you by:
afcowie
From: Owen T. <ot...@re...> - 2008-10-07 12:53:51
|
On Mon, 2008-10-06 at 20:14 +0200, Stefan Prelle wrote: > Hi all, > > I just stumbled upon the not yet exposed methods getX() and getY() > in org.gnome.gdk.EventButton and Andrew's comment: > > * I'm not exposing these yet; why on earth are they double? If there's > * no good reason or it's legacy crap, we're going to change the return > * signature to int. > > I agree that I don't see a point in not having integers here. So, if > noone is coming with a good example why to use doubles here, I suggest > that we expose them as ints. > > Any comments? They are double because in some cases sub-pixel positioning is available... for example, when tablet support is enabled. This is important for, among things, painting programs. Any questions? - Owen |