Re: [java-gnome-hackers] Boxed types
Brought to you by:
afcowie
From: Andrew C. <an...@op...> - 2008-06-13 07:36:15
|
On Thu, 2008-06-12 at 12:56 +0200, Gyetvan Andras wrote: > Hello ! > > It seems to me that there is no framework implemented in java-gnome API > to manage boxed types. Boxeds are used in quite a number of places already, so "no framework to manage" is certainly incorrect. However, there is not any infrastructure in place to allow generation of the code to instantiate arbitrary Boxed types. That's still a bit of a kludge. See note 2 to http://article.gmane.org/gmane.comp.gnome.bindings.java.devel/1090 As I said then, I'm not entirely convinced it needs more just now. There aren't that many. If someone wants to invest the energy in changing this part of things, then they can certainly propose their ideas to this list. > for example gdk_window_invalidate_rect(), > what I need to use, but I am unable to create a Rectangle instance. Rectangle and Window's invalidate() have already done on the branch where Stefan and I have been doing some TextView work. [Rectangle was already partially done for EventExpose, but as it happens I took it all the way to a first class object not too long ago] I have just taken the time to cherry pick the relevant revisions off of 'textivew', most of 526 and 527. Bit of a pain in the ass, but it should work for you. See revno 510 on 'mainline'. That should get you going and the patch should be instructive. AfC Sydney -- Andrew Frederick Cowie Managing Director Operational Dynamics Consulting, Pty Ltd |