Delivered-To: garrigue at math.nagoya-u.ac.jp Authentication-Results: mailhost.math.nagoya-u.ac.jp sender=lablgtk-bounces at yquem.inria.fr; domainkey=neutral (no query protocol specified; no policy for yquem.inria.fr) Delivered-To: lablgtk at yquem.inria.fr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=djvhiP0yt5vGQsf5kbTB2xgYA3bozVfmo30jLUo0Lp0=; b=jeH6WPfUWuxkZ7/W35nuPgHQMvaPws46gpLDxGpSfODBxrgUUqlqnqH23cGGOwGbjI nmH2pSpjpZ2cxHXUaWSORKq+09SovzOXoxiSRIvdQ2SMGGnok07QN141yCDqGnL4gypI G4QaIFRqSC1JtO9ehNZkbA8Unkh+xwntLkjI8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=httT/Jb/aBRFaG6QXAyIm9xLtDOECkwsP4Khx499F9m8vwRGQr1CPt9r/EXeGp7QPg Ax62dVeDG9BvcMavbwa5sbi8h4l0EefeD0nGVPd7b25sNaJemvj3u4UcyVtV2Ncr7gG8 4o8TW6OEIkD/aWRrNbiQGdiGUdaIlQc5cyQM8= MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 10 Sep 2010 08:14:00 -0700 Message-ID: Subject: Re: [Lablgtk] Lablgtk interface to GtkCurve From: yoann padioleau To: Johan Mazel Content-Type: text/plain; charset=ISO-8859-1 Cc: lablgtk at yquem.inria.fr Status: U On Fri, Sep 10, 2010 at 6:57 AM, Johan Mazel 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 >> >> 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 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 > Lablgtk@yquem.inria.fr > http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk > > _______________________________________________ Lablgtk mailing list Lablgtk@yquem.inria.fr http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk