1 /*
2 
3     CanvasP.h - private header file for the Canvas Widget
4     -  a widget that allows programmer-specified refresh procedures.
5     Copyright (C) 1990,93,94 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 _CanvasP_h
24 #define _CanvasP_h
25 
26 #include <X11/IntrinsicP.h>
27 #include <X11/CoreP.h>
28 #include <X11/Xaw/SimpleP.h>
29 
30 #include "canvas.h"
31 
32 typedef struct {
33   char	dummy;	/* some stupid compilers barf on empty structures */
34 } CanvasClassPart;
35 
36 
37 typedef struct _PixlabelClassRec {
38   CoreClassPart       core_class;
39   SimpleClassPart     simple_class;
40   CanvasClassPart     canvas_class;
41 } CanvasClassRec;
42 
43 extern CanvasClassRec canvasClassRec;
44 
45 
46 typedef struct {
47   XfwfCanvasExposeProc	redraw;
48   XtPointer		redraw_data;
49   XfwfCanvasResizeProc	resize;
50   XtPointer		resize_data;
51   Pixmap                pixmap;
52   Visual		*visual;
53   int                   is_visible;
54 } CanvasPart;
55 
56 typedef struct _CanvasRec {
57   CorePart    core;
58   SimplePart  simple;
59   CanvasPart  canvas;
60 } CanvasRec;
61 
62 #endif /* _CanvasP_h */
63