1 /** \file
2  * \brief Cairo extra drivers.
3  *        Rendering PDF, PS, SVG and IMAGERGB.
4  *
5  * See Copyright Notice in cd.h
6  */
7 
8 module cd.cairo;
9 
10 import cd.cd: cdContext;
11 
12 extern (C) @safe nothrow:
13 
14 /* Some of these context can be used directly or by cdInitContextPlus,
15    as  CD_NATIVEWINDOW, CD_IMAGE, CD_EMF, CD_PRINTER and CD_DBUFFER.
16    The others only directly.
17 */
18 
19 cdContext* cdContextCairoNativeWindow();
20 cdContext* cdContextCairoImage();
21 cdContext* cdContextCairoDBuffer();
22 cdContext* cdContextCairoPrinter();
23 cdContext* cdContextCairoPS();
24 cdContext* cdContextCairoPDF();
25 cdContext* cdContextCairoSVG();
26 cdContext* cdContextCairoImageRGB();
27 cdContext* cdContextCairoEMF();
28 
29 alias CD_CAIRO_NATIVEWINDOW = cdContextCairoNativeWindow;
30 alias CD_CAIRO_IMAGE = cdContextCairoImage;
31 alias CD_CAIRO_DBUFFER = cdContextCairoDBuffer;
32 alias CD_CAIRO_PRINTER = cdContextCairoPrinter;
33 alias CD_CAIRO_PS = cdContextCairoPS;
34 alias CD_CAIRO_PDF = cdContextCairoPDF;
35 alias CD_CAIRO_SVG = cdContextCairoSVG;
36 alias CD_CAIRO_IMAGERGB = cdContextCairoImageRGB;
37 alias CD_CAIRO_EMF = cdContextCairoEMF;