2
* $Header: /home/orchestra5/davy/stuff/misc/xsat/RCS/Canvas.h,v 1.1 92/04/10 14:08:04 davy Exp $
4
* Copyright 1992 by David A. Curry
5
* Adapted for use with ACfax by Andreas Czechanowski
7
* Permission to use, copy, modify, distribute, and sell this software and its
8
* documentation for any purpose is hereby granted without fee, provided that
9
* the above copyright notice appear in all copies and that both that copyright
10
* notice and this permission notice appear in supporting documentation. The
11
* author makes no representations about the suitability of this software for
12
* any purpose. It is provided "as is" without express or implied warranty.
14
* Public include file for the canvas widget. Based on the include file for
15
* the Template widget in the X11R5 distribution.
19
* Engineering Computer Network
20
* 1285 Electrical Engineering Building
21
* West Lafayette, IN 47907
25
* Revision 1.1 92/04/10 14:08:04 davy
32
/****************************************************************
36
****************************************************************/
41
* Name Class RepType Default Value
42
* ---- ----- ------- -------------
43
* background Background Pixel XtDefaultBackground
44
* border BorderColor Pixel XtDefaultForeground
45
* borderWidth BorderWidth Dimension 1
46
* destroyCallback Callback Pointer NULL
47
* height Height Dimension 0
48
* mappedWhenManaged MappedWhenManaged Boolean True
49
* sensitive Sensitive Boolean True
50
* width Width Dimension 0
51
* x Position Position 0
52
* y Position Position 0
56
* Canvas-specific resource names.
58
#define XtNidleCursor "idleCursor"
59
#define XtNbusyCursor "busyCursor"
61
enum { CanvasDrawGC, CanvasCopyGC, CanvasClearGC };
62
enum { CanvasPicture };
65
* Declare specific CanvasWidget class and instance datatypes.
67
typedef struct _CanvasClassRec* CanvasWidgetClass;
68
typedef struct _CanvasRec* CanvasWidget;
71
* Declare the class constant.
73
extern WidgetClass canvasWidgetClass;
76
* Declare the functions accessable for the user
78
extern GC canvasGetGC(
79
#if NeedFunctionPrototypes
85
extern Pixmap canvasGetPixmap(
86
#if NeedFunctionPrototypes
92
extern void canvasUpdateArea(
93
#if NeedFunctionPrototypes
95
unsigned, unsigned, /* x, y */
96
unsigned, unsigned /* width, height */
100
#endif /* _Canvas_h */