home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume8 / ball2 / part01 / xball / DrawingA.h < prev    next >
C/C++ Source or Header  |  1990-06-26  |  1KB  |  54 lines

  1. /* DrawingA.h - Public Header file */
  2.  
  3. /* Copyright 1990, David Nedde
  4. /*
  5. /* This software is released into the public domain.
  6. /* Permission to use, copy, modify, and distribute this
  7. /* software and its documentation for any purpose and without fee
  8. /* is granted provided that the above copyright notice appears in all copies.
  9. /* It is provided "as is" without express or implied warranty.
  10. */
  11.  
  12. /* Define widget's class pointer and strings used to specify resources */
  13.  
  14. #ifndef _XawDrawingArea_h
  15. #define _XawDrawingArea_h
  16.  
  17. /* Resources ADDED to label widget:
  18.  
  19.  Name             Class        RepType        Default Value
  20.  ----             -----        -------        -------------
  21.  exposeCallback         Callback        Pointer        NULL
  22.  inputCallback         Callback        Pointer        NULL
  23.  motionCallback         Callback        Pointer        NULL
  24.  resizeCallback         Callback        Pointer        NULL
  25. */
  26.  
  27.  
  28. extern WidgetClass drawingAreaWidgetClass;
  29.  
  30. typedef struct _DrawingAreaClassRec *DrawingAreaWidgetClass;
  31. typedef struct _DrawingAreaRec        *DrawingAreaWidget;
  32.  
  33.  
  34. /* Resource strings */
  35. #define XtNexposeCallback    "exposeCallback"
  36. #define XtNinputCallback    "inputCallback"
  37. #define XtNmotionCallback    "motionCallback"
  38. #define XtNresizeCallback    "resizeCallback"
  39.  
  40.  
  41. typedef struct _XawDrawingAreaCallbackStruct {
  42.   int      reason;
  43.   XEvent *event;
  44.   Window  window;
  45. } XawDrawingAreaCallbackStruct;
  46.  
  47. /* Reasons */
  48. #define XawCR_EXPOSE 1
  49. #define XawCR_INPUT  2
  50. #define XawCR_MOTION 3
  51. #define XawCR_RESIZE 4
  52.  
  53. #endif /* _XawDrawingArea_h */
  54.