Re: Why floating point for widget positions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mike Emmel wrote:
I've noticed that the GdkEventMotion x y positions are given in
floating point coordinates and was wondering why ?

I'd assume that this is just because xlib delivers the value as `double'.

I've looking at GTK for embedded use and this is and issue.

How is floating point coordinates a problem ?

Btw,
    if you are trapping GdkEventMotion you can use:
http://developer.gnome.org/doc/API/2.0/gdk/gdk-Windows.html#gdk-window-get-pointer
on widget->window for an integer version of the mouse location.

Cheers,
                  -Tristan

_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux