RE: [Java-gnome-developer] Question concerning pixel graphics (fw d)
Brought to you by:
afcowie
From: Markus F. <mar...@t-...> - 2001-11-06 16:26:16
|
>Since GDK objects don't have this runtime >feature they cannot be defined as "define-object". What is the difficulty? (define-object GdkPixmap (GdkWindow)) seems to run fine. Or are there side effects? >know how to create a valid constructor. It is possible to create a new >constructor for the object and have it added to the generated code. >Perhaps GdkColor(int red, int green, int blue). If you are not >familiar with this process I could add it for you. I've made it by this: ---------- gdkwindow = drawingarea.getWindow(); style = drwarea.getStyle().copy(); color = style.getFG(0); gc = new GdkGC(gdkwindow); cmap = new GdkColormap(); ---------- now I'm able to allocate colors with the help of cmap and color and to use it for painting with gc. btw, I've added (define-func gdk_draw_point none ((GdkWindow window (object)) (GdkGC gc) (int x) (int y))) to gdk.defs Thank you for your patience, Markus Fritsche |