summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorscuri <scuri>2009-12-02 17:28:14 +0000
committerscuri <scuri>2009-12-02 17:28:14 +0000
commitd8f5733cca135168f0c197d24258253a3e6b6d08 (patch)
tree6bc21b1b62640709588d4f4474d4aee8bd24a950 /include
parent837b9b863299bd05b5348b47f9c028091c70de61 (diff)
New: functions wdCanvasSetTransform, wdCanvasGetTransform, wdCanvasTranslate and wdCanvasScale, to better control the WD transformation.
Diffstat (limited to 'include')
-rw-r--r--include/wd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/wd.h b/include/wd.h
index 80ee7b0..f238027 100644
--- a/include/wd.h
+++ b/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);