[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Questions about guile-gtk
From: |
tomas |
Subject: |
Questions about guile-gtk |
Date: |
Wed, 16 Oct 2002 13:48:48 +0200 |
User-agent: |
Mutt/1.3.24i |
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
- Questions about guile-gtk,
tomas <=