This is the mail archive of the
java-discuss@sources.redhat.com
mailing list for the Java project.
Re: Gtk constants in Java
- To: Oskar Liljeblad <osk at hem dot passagen dot se>
- Subject: Re: Gtk constants in Java
- From: Tom Tromey <tromey at cygnus dot com>
- Date: Sat, 15 Jul 2000 10:40:09 -0700 (PDT)
- Cc: java-discuss at sourceware dot cygnus dot com
- References: <20000715162308.A21951@strix.eductussyd.se>
Oskar> As I see it, there are only three viable alternatives:
One additional thing to do would be to ask the Gtk developers which
solution is most "Gtk-like". The idea here is to try to reduce the
conceptual burden of moving from Gtk/C to Gtk/Java, by keeping the
models "similar" and "intuitive".
Oskar> 2. One "static" class for each flag/enum-set, with int-constants as
Oskar> the first alternative above (GtkArrowType.UP, GtkArrowType.DOWN,
Oskar> ..). This is the nicest solution IMHO. It is also efficient if
Oskar> the run-time needn't keep the classes in memory. (Is this true?)
My guess is that the gain here will be very small or maybe
unmeasurable. We're probably only talking about a couple of pages of
memory.
Tom