File: DrawingA.h

package info (click to toggle)
3dchess 0.8.1-23
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 548 kB
  • sloc: ansic: 3,035; makefile: 45
file content (54 lines) | stat: -rw-r--r-- 1,445 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/* DrawingA.h - Public Header file */

/* Copyright 1990, David Nedde
 *
 * Permission to use, copy, modify, and distribute this
 * software and its documentation for any purpose and without fee
 * is granted provided that the above copyright notice appears in all copies.
 * It is provided "as is" without express or implied warranty.
 */

/* Define widget's class pointer and strings used to specify resources */

#ifndef _XawDrawingArea_h
#define _XawDrawingArea_h

#define XADCS XawDrawingAreaCallbackStruct 

/* Resources ADDED to label widget:

 Name		     Class		RepType		Default Value
 ----		     -----		-------		-------------
 exposeCallback	     Callback		Pointer		NULL
 inputCallback	     Callback		Pointer		NULL
 motionCallback	     Callback		Pointer		NULL
 resizeCallback	     Callback		Pointer		NULL
*/


extern WidgetClass drawingAreaWidgetClass;

typedef struct _DrawingAreaClassRec *DrawingAreaWidgetClass;
typedef struct _DrawingAreaRec	    *DrawingAreaWidget;


/* Resource strings */
#define XtNexposeCallback	"exposeCallback"
#define XtNinputCallback	"inputCallback"
#define XtNmotionCallback	"motionCallback"
#define XtNresizeCallback	"resizeCallback"


typedef struct _XawDrawingAreaCallbackStruct {
  int	  reason;
  XEvent *event;
  Window  window;
} XawDrawingAreaCallbackStruct;

/* Reasons */
#define XawCR_EXPOSE 1
#define XawCR_INPUT  2
#define XawCR_MOTION 3
#define XawCR_RESIZE 4

#endif /* _XawDrawingArea_h */