Re: Why floating point for widget positions
- From: Tristan Van Berkom <tvb gnome org>
- To: Mike Emmel <mike emmel gmail com>
- Cc: gtk-list gnome org
- Subject: Re: Why floating point for widget positions
- Date: Tue, 22 Mar 2005 16:12:09 -0500
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]