Re: Lablgtk interface to GtkCurve

yoann padioleau <[email protected]> Fri, 10 Sep 2010 08:14:00 -0700
Newsgroups gmane.comp.lang.ocaml.lib.gtk
Message-ID <[email protected]>
On Fri, Sep 10, 2010 at 6:57 AM, Johan Mazel <[email protected]> wrote:
> Hi
> I dug a bit more inside cairo, GTK and lablgtk.
> From what I can understand, cairo can be used to draw any kind of
> geometrical form (including in my case, curves).
>
> Since GTK can itself handle widget and any type of windows, does your
> suggestion include a combination between GTK and cairo in order to draw
> curves ?
> Of course, that would suppose a bit of Ocaml code from my part in order to
> handle the cairo primitives and make them draw curves.
>
> In this case, does anyone have heard of such a combination and its ability
> to work ?

Works perfectly. There is an ocaml binding to cairo made by olivier andrieu.

> My instincts tells me that since such a combination exists in
> python (http://www.ralph-glass.homepage.t-online.de/clock/readme.html), this
> combination should be available in Ocaml, but I'm not totally sure.
>
> Thanks again for your suggestions and for the fast introduction of GTKCurve
> bindings in lablgtk.
>
> Regards.
> Johan Mazel
>
> 2010/9/8 Adrien <[email protected]>
>>
>> Hi,
>>
>> Very little time to expand, but have you checked cairo[1]?
>>
>> Also, maybe it won't survive gtk3 which is due very soon now.
>>
>> [1] http://cairographics.org/
>> [2] http://en.wikipedia.org/wiki/Cairo_(graphics)
>>
>> --
>>
>> Adrien Nader
>>
>> On 08/09/2010, Johan Mazel <[email protected]> wrote:
>> > Hi
>> > I want to draw several curve using GTK+ and Lablgtk.
>> > According to my research, the most appropriate class for this is the
>> > class
>> > called GtkCurve (http://library.gnome.org/devel/gtk/2.16/GtkCurve.html).
>> > However, in GTK+ documentation (cf previous link), this class is
>> > considered
>> > "too specialized/little-used for GTK+".
>> > Plus, according to the Lablgtk documentation, there is no interface for
>> > this
>> > class.
>> > Is this fact about Lablgtk linked to the current status of GtkCurve
>> > inside
>> > the whole GTK+ ensemble (ie, the maintainers don't want to maintain an
>> > interface for a class that will disappear from GTK+) or is this a
>> > deliberate
>> > choice, or have I not searched enough ?
>> > Thanks in advance for your time.
>> > Johan Mazel
>> >
>
>
> _______________________________________________
> Lablgtk mailing list
> [email protected]
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk
>
>