[cairo] cairoxx
Evan Martin
martine at danga.com
Tue Sep 20 23:07:57 PDT 2005
I've been doing exactly this. I should put this code up somewhere.
It's currently just a 283-line header file that does the obvious
wrapping. Here's a snippet of some code that uses it. (I apologize
for the coding style, but it's trying to match another project.)
// ... a function that takes a cairo::Context &cr, and then:
cr.SelectFontFace("sans");
cr.SetFontSize(12.0);
cairo::TextExtents te;
// center the title.
cr.GetTextExtents(*title_, &te);
cr.MoveTo(Point((cairo_width_ - te.width) / 2.0, -20));
cr.ShowText(*title_);
On 9/19/05, Rui Pires <themidgard at gmail.com> wrote:
> Hi,
>
> I'm quite interested in cairoxx, as i'm a C++ fan.
> It's sad that there are already bindings available for a bunch of other
> languages and not for C++. It's true that in C++ you can use the C API
> directly, but it's not the same thing. For me it just doesn't feel right
> using it that way.
>
> Anyway, i've checked the mailing list archives didn't find out if this is
> being actively developed or if it is stopped. Also, at the time i write
> this, the last CVS checkin seems to have been 16 months ago.
>
> If anyone's interested i'm willing to try writing a really thin set of
> wrapper classes (mostly inline functions, to keep overhead at a mininum).
>
>
> Rui Pires.
>
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://cairographics.org/cgi-bin/mailman/listinfo/cairo
>
>
More information about the cairo
mailing list