On Wed, 23 Mar 2005 09:58:46 +0200, Olexiy Avramchenko <olexiy@xxxxxxxxxxx> wrote: > Tristan Van Berkom wrote: > > 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'. > Nope, they're defined as integers by Xlib interface (at least for X11R6.4). I > don't know the why GDK uses floating point there, but I'll not be surprised if > it smth ~= "historical reasons". > Maybe this question is for gtk-devel list ? > > >> I've looking at GTK for embedded use and this is and issue. > > > > How is floating point coordinates a problem ? > That becomes a problem when 450MIPS CPU can provide <= 2MFLOPS. > > Some time ago I was thinking about to run GTK2 on embedded device (without FPU > also). Project was freezed at the point when I started to look for alternative > toolkit. > > Olexiy > > Even with all of its warts GTK could be a decent embedded toolkit I've decided to adopt it for embedded use or at least as the starting point for a embedded toolkit. I want to base it off the 2.8 release later this summer I'll post to the list once I have it "together". I have no plans to maintian perfect compatibility with the desktop version but want to keep the changes resonable i.e. no uneeded floating point reduced widget set etc. One of the biggest changes I have in mind is rewriting GObject to use libffi and simplifying the constructor chain. Anyone who is intrested in embedded GTK or doing a serious rewrite of GObject using libffi and simplification of the constructors please email me. If there is enough intrest we could start the project now. Mike _______________________________________________ gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list