using cairo with gtkd
llee
llee at goucher.edu
Tue Jan 22 21:21:36 PST 2008
llee Wrote:
> llee Wrote:
>
> > A number of functions in Cairo return objects with the following naming conventions, according to the documention on: http://devel.akbkhome.com/gtkd_docs/src/cairoLib:
> >
> > cairo_<object name>_t
> >
> > When I try to create instances of these objects, I get an error. For example, when I try to instantiate the following:
> >
> > cairo_text_extents_t* textExtents
> >
> > The compiler says that cairo_text_extents_t is undefined. I tried importing the following modules:
> >
> > cairoLib.Cairo, and cairoLib.Types.
> >
> > Neither of these resolved the problem. If anyone can tell me how I can use the following functions I'd appreciate it.
> >
> > void textExtents (char[] utf8, cairo_text_extents_t * extents);
> > void selectFontFace (char[] family, cairo_font_slant_t slant, cairo_font_weight_t weight);
> >
> > Thanks in advance.
I imported gtkc.cairoLibtypes. This stoped the compiler from saying that cairo_text_extents_t is undefined, but the structure is missing data members. When I tried to dereference cairo_text_extents_t.width the compiler says that width is not a recognized data member. I get the same error when I try to dereference Xadvance. I'm really running out of ideas here. Any help would be appreciated.
More information about the Digitalmars-d
mailing list