diff options
Diffstat (limited to 'include/cd.h')
-rw-r--r-- | include/cd.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/cd.h b/include/cd.h index 556afa1..70c266e 100644 --- a/include/cd.h +++ b/include/cd.h @@ -57,6 +57,8 @@ void cdInitContextPlus(void); /* need an external library */ typedef int (*cdCallback)(cdCanvas* canvas, ...); int cdContextRegisterCallback(cdContext *context, int cb, cdCallback func); unsigned long cdContextCaps(cdContext *context); +int cdContextIsPlus(cdContext *context); +int cdContextType(cdContext *context); /* control */ int cdCanvasSimulate(cdCanvas* canvas, int mode); @@ -394,7 +396,7 @@ enum { /* some font sizes */ CD_LARGE = 18 }; -/* Canvas Capabilities */ +/* Context Capabilities */ #define CD_CAP_NONE 0x00000000 #define CD_CAP_FLUSH 0x00000001 #define CD_CAP_CLEAR 0x00000002 @@ -430,6 +432,14 @@ enum { /* some font sizes */ #define CD_CAP_BEZIER 0x80000000 #define CD_CAP_ALL 0xFFFFFFFF +/* Context Types */ +enum { + CD_CTX_WINDOW, + CD_CTX_DEVICE, + CD_CTX_IMAGE, + CD_CTX_FILE +}; + /* cdPlay definitions */ #define CD_SIZECB 0 /* size callback */ typedef int(*cdSizeCB)(cdCanvas *canvas, int w, int h, double w_mm, double h_mm); |