RE: [Java-gnome-developer] Question concerning pixel graphics (fw d)
Brought to you by:
afcowie
From: Jeffrey M. <Jef...@Br...> - 2001-11-06 19:33:34
|
> This is an artifact of the object wrapping, not of Gdk types > per se. The > problem is that the code that is generated assumes it is > always generated > for Gtk bindings. The code assumes that. What should be done > is to have a > property for all objects to defined "what type" of object > they are. That > property would then be properly inherited, eg. for example something > like.. That is essentially what I am doing with "define-object" and "define-boxed". The concept of define-object and define-boxed were not created in this project but were created and used in several other language bindings (as were define-enum and define-flags)to differentiate between GtkObject objects and standard structures that do not have runtime type resolution capabilities. define-boxed is also used for GTK objects that don't have runtime discovery capabilities like GtkStyle. In Java-GNOME the define-object type has been my primary focus, not define-boxed. I have recently added the ability to have methods on define-boxed and as I stated in a previous email I will soon add the ability to implement inheritance. > Then, when code is generated which requires to access the > underlying type > mechanism, GtkFoo and GdkFoo at their code generation time > have access to > information of which type they are. |