yet another gui framework for Erlang
Fri Aug 19 13:26:54 CEST 2005
Jouni Rynö wrote:
> Ah, it should be
> Win = ssnd(plot_area, 'GN_drawingarea_get_window', ),
> Gc = snd('Gdk_gc_new', [Win]),
> snd('Gdk_draw_line', [Win, Gc, 10, 10, 100, 200]),
> At least I get the line :)
yes, that's how i do it. i plan to put more examples in gtkNode/examples/*.
you should of course feel free to check in your stuff...
> But is there a way (function) to access the Gc:s in the
never tried to do that. if it can't be done through the API it's easy enough
to write your own function for this; see GN_widget_get_attr in gtkNode_internal.c
accessing data members is one of the biggest nuisances in the gtkNode
approach. would be nice to be able to do something like
having generated GN_get_attr from the typedefs...
> On Fri, 2005-08-19 at 13:00 +0300, Jouni Rynö wrote:
>>On Wed, 2005-08-17 at 16:05 +0200, Mats Cronqvist wrote:
>>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 ...
cairo seems very interesting,
but i don't know enough about it to predict when the future(tm) will be upon
us. there is a GtkCairo widget (http://www.cairographics.org/GtkCairo), anybody
know anything about that?
More information about the erlang-questions