yet another gui framework for Erlang
Jouni Rynö
Jouni.Ryno@REDACTED
Fri Aug 19 12:00:34 CEST 2005
On Wed, 2005-08-17 at 16:05 +0200, Mats Cronqvist wrote:
> so one can design the interface i glade; ione can easily create
> a very complicated one in a few hours. all the widgets are named, the
> names are available on the Erlang side as atoms. one also specifies
> which events should result in signals.
> ...
I tried to figure out, how to draw. I generated a GtkDrawingArea, but I
could not figure out, how to get my hands on the gc
Something like this I should be able to do, 'plot_area' is the name of
the GtkDrawingArea widget.
Win = ssnd(plot_area, 'GN_drawingarea_get_window', []),
% Gc = ssnd(plot_area, 'Gdk_gc_new', []), <- this does not work, and
there should already be a define GC in the window?
ssnd(plot_area, 'Gdk_draw_line', [Win, Gc, 10, 10, 100, 200]),
P.S. It the future (tm), the cairo and gdk-cairo drawable would be nice
to have included, but that's gtk 2.8 stuff. The point being, that the
same code calling the cairo functions could draw also pdf, png, etc, not
just gdkdrawable ...
best regards
Jouni
--
Jouni Rynö mailto://Jouni.Ryno@fmi.fi/
http://www.geo.fmi.fi/~ryno/
Finnish Meteorological Institute http://www.fmi.fi/
Space Research http://www.geo.fmi.fi/
P.O.BOX 503 Tel (+358)-9-19294656
FIN-00101 Helsinki FAX (+358)-9-19294603
Finland priv-GSM (+358)-50-5302903
"It's just zeros and ones, it cannot be hard"
More information about the erlang-questions
mailing list