using cairo with gtkd

llee llee at goucher.edu
Tue Jan 22 21:04:43 PST 2008


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.


never mind, I solved it.




More information about the Digitalmars-d mailing list