1 #ifndef _TKCANVASES
2 #define _TKCANVASES
3 
4 #ifndef _TKCANVAS
5 #include "tkCanvas.h"
6 #endif
7 
8 EXTERN Tk_CustomOption tk_CanvasTagsOption;
9 
10 
11 EXTERN void		Tk_CanvasDrawableCoords _ANSI_ARGS_((Tk_Canvas canvas,
12 			    double x, double y, short *drawableXPtr,
13 			    short *drawableYPtr));
14 EXTERN void		Tk_CanvasEventuallyRedraw _ANSI_ARGS_((
15 			    Tk_Canvas canvas, int x1, int y1, int x2,
16 			    int y2));
17 EXTERN int		Tk_CanvasGetCoord _ANSI_ARGS_((Tcl_Interp *interp,
18 			    Tk_Canvas canvas, CONST char *string,
19 			    double *doublePtr));
20 EXTERN Tk_CanvasTextInfo *Tk_CanvasGetTextInfo _ANSI_ARGS_((Tk_Canvas canvas));
21 EXTERN int		Tk_CanvasPsBitmap _ANSI_ARGS_((Tcl_Interp *interp,
22 			    Tk_Canvas canvas, Pixmap bitmap, int x, int y,
23 			    int width, int height));
24 EXTERN int		Tk_CanvasPsColor _ANSI_ARGS_((Tcl_Interp *interp,
25 			    Tk_Canvas canvas, XColor *colorPtr));
26 EXTERN int		Tk_CanvasPsFont _ANSI_ARGS_((Tcl_Interp *interp,
27 			    Tk_Canvas canvas, Tk_Font font));
28 EXTERN void		Tk_CanvasPsPath _ANSI_ARGS_((Tcl_Interp *interp,
29 			    Tk_Canvas canvas, double *coordPtr, int numPoints));
30 EXTERN int		Tk_CanvasPsStipple _ANSI_ARGS_((Tcl_Interp *interp,
31 			    Tk_Canvas canvas, Pixmap bitmap));
32 EXTERN double		Tk_CanvasPsY _ANSI_ARGS_((Tk_Canvas canvas, double y));
33 EXTERN void		Tk_CanvasSetStippleOrigin _ANSI_ARGS_((
34 			    Tk_Canvas canvas, GC gc));
35 EXTERN Tk_Window	Tk_CanvasTkwin _ANSI_ARGS_((Tk_Canvas canvas));
36 EXTERN void		Tk_CanvasWindowCoords _ANSI_ARGS_((Tk_Canvas canvas,
37 			    double x, double y, short *screenXPtr,
38 			    short *screenYPtr));
39 EXTERN void		Tk_CreateItemType _ANSI_ARGS_((Tk_ItemType *typePtr));
40 EXTERN Tk_ItemType *	Tk_GetItemTypes _ANSI_ARGS_((void));
41 
42 /* These are from tkInt.h */
43 
44 extern void		TkBezierPoints _ANSI_ARGS_((double control[],
45 			    int numSteps, double *coordPtr));
46 extern void		TkBezierScreenPoints _ANSI_ARGS_((Tk_Canvas canvas,
47 			    double control[], int numSteps,
48 			    XPoint *xPointPtr));
49 extern void		TkFillPolygon _ANSI_ARGS_((Tk_Canvas canvas,
50 			    double *coordPtr, int numPoints, Display *display,
51 			    Drawable drawable, GC gc, GC outlineGC));
52 extern int		TkMakeBezierCurve _ANSI_ARGS_((Tk_Canvas canvas,
53 			    double *pointPtr, int numPoints, int numSteps,
54 			    XPoint xPoints[], double dblPoints[]));
55 extern void		TkMakeBezierPostscript _ANSI_ARGS_((Tcl_Interp *interp,
56 			    Tk_Canvas canvas, double *pointPtr,
57 			    int numPoints));
58 extern void		TkIncludePoint _ANSI_ARGS_((Tk_Item *itemPtr,
59 			    double *pointPtr));
60 extern void		TkGetButtPoints _ANSI_ARGS_((double p1[], double p2[],
61 			    double width, int project, double m1[],
62 			    double m2[]));
63 extern int		TkGetMiterPoints _ANSI_ARGS_((double p1[], double p2[],
64 			    double p3[], double width, double m1[],
65 			    double m2[]));
66 extern int		TkLineToArea _ANSI_ARGS_((double end1Ptr[2],
67 			    double end2Ptr[2], double rectPtr[4]));
68 extern double		TkLineToPoint _ANSI_ARGS_((double end1Ptr[2],
69 			    double end2Ptr[2], double pointPtr[2]));
70 extern int		TkOvalToArea _ANSI_ARGS_((double *ovalPtr,
71 			    double *rectPtr));
72 extern double		TkOvalToPoint _ANSI_ARGS_((double ovalPtr[4],
73 			    double width, int filled, double pointPtr[2]));
74 extern int		TkPolygonToArea _ANSI_ARGS_((double *polyPtr,
75 			    int numPoints, double *rectPtr));
76 extern double		TkPolygonToPoint _ANSI_ARGS_((double *polyPtr,
77 			    int numPoints, double *pointPtr));
78 
79 #include "tkVMacro.h"
80 #endif
81 
82