summaryrefslogtreecommitdiff
path: root/src/cairo/cdcairoplus.c
blob: 9da8b3312edd3fef102c5f7421cc158dc55ff1bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/** \file
 * \brief Cairo as Context Plus
 *
 * See Copyright Notice in cd.h
 */
 
#include "cd.h"
#include "cd_private.h"
#include "cdcairo.h"
#include <stdlib.h>
#include <memory.h>


void cdInitContextPlus(void)
{
  cdContext* ctx_list[CD_CTXPLUS_COUNT];
  memset(ctx_list, 0, sizeof(ctx_list));

  ctx_list[CD_CTXPLUS_NATIVEWINDOW] = cdContextCairoNativeWindow();
  ctx_list[CD_CTXPLUS_IMAGE] = cdContextCairoImage();
  ctx_list[CD_CTXPLUS_DBUFFER] = cdContextCairoDBuffer();
#ifndef CAIRO_X11
  ctx_list[CD_CTXPLUS_PRINTER] = cdContextCairoPrinter();
#endif
#ifdef WIN32
  ctx_list[CD_CTXPLUS_EMF] = cdContextCairoEMF();
#endif

  cdInitContextPlusList(ctx_list);
}