/* Copyright (c) 2003-2004, AXE, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /* $Id: opvp_0_2_0.h 85 2007-02-15 08:48:56Z sho-otani $ */ /* opvp_common.h ver.1.00 rel.1.0 26 Nov 2004 */ /* OpenPrinting Vector Printer Driver Glue Code */ #ifndef _FSGPD_0_2_0_H #define _FSGPD_0_2_0_H #define _PDAPI_VERSION_MAJOR_ 0 #define _PDAPI_VERSION_MINOR_ 2 /* Return Values */ #define OPVP_OK 0 /* error is -1 */ /* Error Codes */ #define OPVP_FATALERROR -101 /* unrecoverable error occurred within the */ /* library */ #define OPVP_BADREQUEST -102 /* invalid function parameters */ #define OPVP_BADCONTEXT -103 /* bad parameter precontext */ #define OPVP_NOTSUPPORTED -104 /* printer or driver request not supported */ #define OPVP_JOBCANCELED -105 /* job cancelled */ #define OPVP_PARAMERROR -106 /* illegal parameter combination */ /* Info params */ #define OPVP_INFO_PREFIX "updf:" /* Fix */ #define OPVP_FIX_FRACT_WIDTH 8 #define OPVP_FIX_FRACT_DENOM (1< 0 || _PDAPI_VERSION_MINOR_ >= 2) int (*QueryDeviceCapability)(int,int,int,char *); int (*QueryDeviceInfo)(int,int,int,char *); #endif int (*ResetCTM)(int); int (*SetCTM)(int,OPVP_CTM *); int (*GetCTM)(int,OPVP_CTM *); int (*InitGS)(int); int (*SaveGS)(int); int (*RestoreGS)(int); int (*QueryColorSpace)(int,OPVP_ColorSpace *,int *); int (*SetColorSpace)(int,OPVP_ColorSpace); int (*GetColorSpace)(int,OPVP_ColorSpace *); int (*QueryROP)(int,int *,int *); int (*SetROP)(int,int); int (*GetROP)(int,int *); int (*SetFillMode)(int,OPVP_FillMode); int (*GetFillMode)(int,OPVP_FillMode *); int (*SetAlphaConstant)(int,float); int (*GetAlphaConstant)(int,float *); int (*SetLineWidth)(int,OPVP_Fix); int (*GetLineWidth)(int,OPVP_Fix *); int (*SetLineDash)(int,OPVP_Fix *,int); int (*GetLineDash)(int,OPVP_Fix *,int *); int (*SetLineDashOffset)(int,OPVP_Fix); int (*GetLineDashOffset)(int,OPVP_Fix *); int (*SetLineStyle)(int,OPVP_LineStyle); int (*GetLineStyle)(int,OPVP_LineStyle *); int (*SetLineCap)(int,OPVP_LineCap); int (*GetLineCap)(int,OPVP_LineCap *); int (*SetLineJoin)(int,OPVP_LineJoin); int (*GetLineJoin)(int,OPVP_LineJoin *); int (*SetMiterLimit)(int,OPVP_Fix); int (*GetMiterLimit)(int,OPVP_Fix *); int (*SetPaintMode)(int,OPVP_PaintMode); int (*GetPaintMode)(int,OPVP_PaintMode *); int (*SetStrokeColor)(int,OPVP_Brush *); int (*SetFillColor)(int,OPVP_Brush *); int (*SetBgColor)(int,OPVP_Brush *); int (*NewPath)(int); int (*EndPath)(int); int (*StrokePath)(int); int (*FillPath)(int); int (*StrokeFillPath)(int); int (*SetClipPath)(int,OPVP_ClipRule); #if (_PDAPI_VERSION_MAJOR_ > 0 || _PDAPI_VERSION_MINOR_ >= 2) int (*ResetClipPath)(int); #endif int (*SetCurrentPoint)(int,OPVP_Fix,OPVP_Fix); int (*LinePath)(int,int,int,OPVP_Point *); int (*PolygonPath)(int,int,int *,OPVP_Point *); int (*RectanglePath)(int,int,OPVP_Rectangle *); int (*RoundRectanglePath)(int,int,OPVP_RoundRectangle *); #if (_PDAPI_VERSION_MAJOR_ == 0 && _PDAPI_VERSION_MINOR_ < 2) int (*BezierPath)(int,int *,OPVP_Point *); #else int (*BezierPath)(int,int,OPVP_Point *); #endif int (*ArcPath)(int,int,int,OPVP_Fix,OPVP_Fix,OPVP_Fix,OPVP_Fix, OPVP_Fix,OPVP_Fix,OPVP_Fix,OPVP_Fix); int (*DrawBitmapText)(int,int,int,int,void *); int (*DrawImage)(int,int,int,int, OPVP_ImageFormat,OPVP_Rectangle,int,void *); int (*StartDrawImage)(int,int,int,int, OPVP_ImageFormat,OPVP_Rectangle); int (*TransferDrawImage)(int,int,void *); int (*EndDrawImage)(int); int (*StartScanline)(int,int); int (*Scanline)(int,int,int *); int (*EndScanline)(int); int (*StartRaster)(int,int); int (*TransferRasterData)(int,int,unsigned char *); int (*SkipRaster)(int,int); int (*EndRaster)(int); int (*StartStream)(int); int (*TransferStreamData)(int,int,void *); int (*EndStream)(int); } OPVP_api_procs; #endif /* _OPVP_COMMON_H_ */