unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Questions about guile-gtk
@ 2002-10-16 11:48 tomas
  2002-10-19 14:07 ` Marius Vollmer
  0 siblings, 1 reply; 4+ messages in thread
From: tomas @ 2002-10-16 11:48 UTC (permalink / raw


Hi, experts

(yeah, Marius, I fear that's especially you ;-)

while trying to come up with bindings for the GtkCanvas widget
(see my other posting), I came across several questions. Maybe
someone can shec a bit of light on me.

  - I use the function  sgtk_build_args(), which, as I understand,
    tries to convert an SCM keyword list into a GtkArg array to
    set the properties of a Gtk object.
    The third argument to it is a `protector', I don't understand
    exactly its use (but it's usually passed the object, which is
    annoying if it's the object just being created ;-)
    What I'm supposed to do with this?

  - I can't draw a line. The problem is that one of the parameters
    needed is a GtkCanvasPoints* (which is not a regular Gtk object,
    but just a C structure). Does the guile-gtk conversion mechanism
    provide a way to cope with that, or have I to do something
    by hand here?

  - How do I handle C functions with in/out parameters, that is,
    pointers, like:
    
      gtk_canvas_get_scroll_region(GtcCanvas c,
                        double *x1, double *y1, 
                        double *x2, double *y2) 

    Again: is there something in guile-gtk to cope with it and didn't
    I see it, or is it ``roll your own''?

Besides, I think another discussion is in order: is it worth extending
the binding mechanism of guile-gtk (I actually like it), or should we
move towards a more general approach (g-wrap or swig)?

In the mid-term I think it's important to have an ``official'' bindings
generator tool, just to attract good bindings...

Thanks for any input
-- tomas


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-10-21 10:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-16 11:48 Questions about guile-gtk tomas
2002-10-19 14:07 ` Marius Vollmer
2002-10-19 14:21   ` Marius Vollmer
2002-10-21 10:41   ` tomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).