1 /*
2 
3     Canvas.h - public header file for the Canvas Widget
4     -  a widget that allows programmer-specified refresh procedures.
5     Copyright (C) 1990 Robert H. Forsman Jr.
6 
7     This library is free software; you can redistribute it and/or
8     modify it under the terms of the GNU Library General Public
9     License as published by the Free Software Foundation; either
10     version 2 of the License, or (at your option) any later version.
11 
12     This library is distributed in the hope that it will be useful,
13     but WITHOUT ANY WARRANTY; without even the implied warranty of
14     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15     Library General Public License for more details.
16 
17     You should have received a copy of the GNU Library General Public
18     License along with this library; if not, write to the Free
19     Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 
21  */
22 
23 #ifndef _Canvas_h
24 #define _Canvas_h
25 
26 #include <X11/Core.h>
27 
28 #define	XtNexposeProc		"exposeProc"
29 #define	XtNexposeProcData	"exposeProcData"
30 #define	XtNresizeProc		"resizeProc"
31 #define	XtNresizeProcData	"resizeProcData"
32 
33 #define	XtCExposeProc		"ExposeProc"
34 #define	XtCExposeProcData	"ExposeProcData"
35 #define	XtCResizeProc		"ResizeProc"
36 #define	XtCResizeProcData	"ResizeProcData"
37 
38 extern WidgetClass canvasWidgetClass;
39 
40 typedef struct _CanvasClassRec *CanvasWidgetClass;
41 typedef struct _CanvasRec      *CanvasWidget;
42 
43 typedef void(*XfwfCanvasExposeProc)(
44 #if NeedFunctionPrototypes
45 	Widget w,
46 	XExposeEvent *event,
47 	Region region,
48 	XtPointer client_data
49 #endif
50 );
51 
52 typedef void(*XfwfCanvasResizeProc)(
53 #if NeedFunctionPrototypes
54 	Widget w,
55 	XtPointer client_data
56 #endif
57 );
58 
59 #endif /* _Canvas_h */
60