home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
x
/
volume8
/
ball2
/
part01
/
xball
/
DrawingA.h
< prev
next >
Wrap
C/C++ Source or Header
|
1990-06-26
|
1KB
|
54 lines
/* DrawingA.h - Public Header file */
/* Copyright 1990, David Nedde
/*
/* This software is released into the public domain.
/* 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
/* 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 */