From 64a0b5ebb41d36a7db87d24c5451f7db925e24f8 Mon Sep 17 00:00:00 2001 From: scuri Date: Fri, 18 Mar 2011 22:23:38 +0000 Subject: New: functions cdContextIsPlus and cdContextType. --- include/cd.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'include/cd.h') 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); -- cgit v1.2.3