diff options
author | Pixel <pixel@nobis-crew.org> | 2010-06-15 00:18:43 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2010-06-15 00:18:43 -0700 |
commit | 25e85e1b809ec58ecac0f2e8fe48f74836f8e131 (patch) | |
tree | a53caef2257fefdd6610a17427fd14ee656bbc92 /cd/include | |
parent | 7c0c85a86aa73c0c495523f994f8412e377a8195 (diff) |
Upgrading to CD 5.3
Diffstat (limited to 'cd/include')
-rwxr-xr-x | cd/include/cd.h | 11 | ||||
-rwxr-xr-x | cd/include/cd_private.h | 2 | ||||
-rw-r--r-- | cd/include/cdsvg.h | 22 | ||||
-rwxr-xr-x | cd/include/wd.h | 4 |
4 files changed, 34 insertions, 5 deletions
diff --git a/cd/include/cd.h b/cd/include/cd.h index 25859ae..ca38983 100755 --- a/cd/include/cd.h +++ b/cd/include/cd.h @@ -18,10 +18,10 @@ extern "C" { #define CD_NAME "CD - Canvas Draw" #define CD_DESCRIPTION "A 2D Graphics Library" -#define CD_COPYRIGHT "Copyright (C) 1994-2009 Tecgraf, PUC-Rio." -#define CD_VERSION "5.2" -#define CD_VERSION_DATE "2009/06/26" -#define CD_VERSION_NUMBER 502000 +#define CD_COPYRIGHT "Copyright (C) 1994-2010 Tecgraf, PUC-Rio." +#define CD_VERSION "5.3" /* bug fixes are reported only by cdVersion functions */ +#define CD_VERSION_NUMBER 503000 +#define CD_VERSION_DATE "2010/01/26" typedef struct _cdContext cdContext; typedef struct _cdCanvas cdCanvas; @@ -76,6 +76,7 @@ int cdCanvasPlay(cdCanvas* canvas, cdContext *context, int xmin, int xmax, int void cdCanvasGetSize(cdCanvas* canvas, int *width, int *height, double *width_mm, double *height_mm); int cdCanvasUpdateYAxis(cdCanvas* canvas, int* y); double cdfCanvasUpdateYAxis(cdCanvas* canvas, double* y); +int cdCanvasYAxisMode(cdCanvas* canvas, int invert); int cdCanvasInvertYAxis(cdCanvas* canvas, int y); double cdfCanvasInvertYAxis(cdCanvas* canvas, double y); void cdCanvasMM2Pixel(cdCanvas* canvas, double mm_dx, double mm_dy, int *dx, int *dy); @@ -470,7 +471,7 @@ typedef int(*cdSizeCB)(cdCanvas *canvas, int w, int h, double w_mm, double h_mm) /****************************************************************************** -Copyright (C) 1994-2009 Tecgraf, PUC-Rio. +Copyright (C) 1994-2010 Tecgraf, PUC-Rio. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/cd/include/cd_private.h b/cd/include/cd_private.h index b8cec85..b9a3243 100755 --- a/cd/include/cd_private.h +++ b/cd/include/cd_private.h @@ -233,6 +233,8 @@ struct _cdCanvas cdContext* context; }; +enum{CD_BASE_WIN, CD_BASE_X, CD_BASE_GDK}; +int cdBaseDriver(void); /***************/ /* attributes */ diff --git a/cd/include/cdsvg.h b/cd/include/cdsvg.h new file mode 100644 index 0000000..53861ae --- /dev/null +++ b/cd/include/cdsvg.h @@ -0,0 +1,22 @@ +/** \file + * \brief SVG driver + * + * See Copyright Notice in cd.h + */ + +#ifndef __CD_SVG_H +#define __CD_SVG_H + +#ifdef __cplusplus +extern "C" { +#endif + +cdContext* cdContextSVG(void); + +#define CD_SVG cdContextSVG() + +#ifdef __cplusplus +} +#endif + +#endif /* ifndef __CD_SVG_ */ diff --git a/cd/include/wd.h b/cd/include/wd.h index 80ee7b0..f238027 100755 --- a/cd/include/wd.h +++ b/cd/include/wd.h @@ -19,6 +19,10 @@ void wdCanvasGetViewport(cdCanvas* canvas, int *xmin, int *xmax, int *ymin, i void wdCanvasWorld2Canvas(cdCanvas* canvas, double xw, double yw, int *xv, int *yv); void wdCanvasWorld2CanvasSize(cdCanvas* canvas, double hw, double vw, int *hv, int *vv); void wdCanvasCanvas2World(cdCanvas* canvas, int xv, int yv, double *xw, double *yw); +void wdCanvasSetTransform(cdCanvas* canvas, double sx, double sy, double tx, double ty); +void wdCanvasGetTransform(cdCanvas* canvas, double *sx, double *sy, double *tx, double *ty); +void wdCanvasTranslate(cdCanvas* canvas, double dtx, double dty); +void wdCanvasScale(cdCanvas* canvas, double dsx, double dsy); void wdCanvasClipArea(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax); int wdCanvasGetClipArea(cdCanvas* canvas, double *xmin, double *xmax, double *ymin, double *ymax); |