Fix clipping rects
[RExecServer.git] / RDeviceImpl.h
blob5016ef845663350c3bb0d6731792d79ec07b7a0e
1 #ifndef _H_RDEVICEIMPL_
2 #define _H_RDEVICEIMPL_
4 #include <Rinternals.h>
5 #include <Rgraphics.h>
6 #include <Rdevices.h>
8 #include <R_ext/GraphicsDevice.h>
9 #include <R_ext/GraphicsEngine.h>
11 #include <ApplicationServices/ApplicationServices.h>
13 typedef void* QuartzDesc_t;
15 QuartzDesc_t RDevice_Create(
16 NewDevDesc *dd,double scale,double ps,double width,double height,int bg,
17 CGContextRef (*getCGContext)(QuartzDesc_t dev,void*userInfo), //Get the context for this device
18 int (*locatePoint)(QuartzDesc_t dev,void*userInfo,double*x,double*y),
19 void (*close)(QuartzDesc_t dev,void*userInfo),
20 void (*newPage)(QuartzDesc_t dev,void*userInfo),
21 void (*activate)(QuartzDesc_t dev,void*userInfo,int devNum),
22 void (*deactivate)(QuartzDesc_t dev,void*userInfo,int devNum),
23 void*userInfo);
25 double RDevice_GetWidth(QuartzDesc_t desc);
26 void RDevice_SetWidth(QuartzDesc_t desc,double width);
28 double RDevice_GetHeight(QuartzDesc_t desc);
29 void RDevice_SetHeight(QuartzDesc_t desc,double height);
32 void RDevice_SetScale(QuartzDesc_t desc,double scale);
33 double RDevice_GetScale(QuartzDesc_t desc);
35 void RDevice_SetPointSize(QuartzDesc_t desc,double ps);
36 double RDevice_GetPointSize(QuartzDesc_t desc);
38 int RDevice_GetDirty(QuartzDesc_t desc);
39 void RDevice_SetDirty(QuartzDesc_t desc,int dirty);
41 void RDevice_ReplayDisplayList(QuartzDesc_t desc);
43 #endif