home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / m / motifpg2.zip / ch04 / BitmapEdit.h < prev    next >
C/C++ Source or Header  |  1992-07-08  |  2KB  |  65 lines

  1. /*
  2.  * Copyright 1989, 1992 O'Reilly and Associates, Inc.
  3.  * See ../Copyright for complete rights and liability information.
  4.  */
  5.  
  6.  
  7. #ifndef _ORABitmapEdit_h
  8. #define _ORABitmapEdit_h
  9.  
  10. /*
  11.  * BitmapEdit Widget public include file
  12.  */
  13.  
  14. /*
  15.  * The public header file for the immediate superclass normally
  16.  * must be included.  However, not in this case because the public
  17.  * header file for Primitive is in Xm.h, which is already included
  18.  * in all Motif applications.
  19.  */
  20.  
  21. /* #include <Xm/Superclass.h>  */
  22.  
  23. /* 
  24.  * This public structure is used as call_data to the callback.
  25.  * It passes the x, y position of the cell toggled (in units of
  26.  * cells, not pixels) and a mode flag that indicates whether the
  27.  * cell was turned on (1) or off (0).
  28.  */
  29. typedef struct {
  30.     int mode;
  31.     int newx;
  32.     int newy;
  33. } BitmapEditPointInfo;
  34.  
  35. #define XtNtoggleCallback "toggleCallback"
  36. #define XtNcellSizeInPixels "cellSizeInPixels"
  37. #define XtNpixmapWidthInCells "pixmapWidthInCells"
  38. #define XtNpixmapHeightInCells "pixmapHeightInCells"
  39. #define XtNcurX "curX"
  40. #define XtNcurY "curY"
  41. #define XtNcellArray "cellArray"
  42. #define XtNshowEntireBitmap "showEntireBitmap"
  43.  
  44. #define XtCToggleCallback "ToggleCallback"
  45. #define XtCCellSizeInPixels "CellSizeInPixels"
  46. #define XtCPixmapWidthInCells "PixmapWidthInCells"
  47. #define XtCPixmapHeightInCells "PixmapHeightInCells"
  48. #define XtCCurX "CurX"
  49. #define XtCCurY "CurY"
  50. #define XtCCellArray "CellArray"
  51. #define XtCShowEntireBitmap "ShowEntireBitmap"
  52.  
  53. extern char *BitmapEditGetArray(); /* w */
  54.     /* Widget w; */
  55.  
  56. /* Class record constants */
  57.  
  58. extern WidgetClass bitmapEditWidgetClass;
  59.  
  60. typedef struct _BitmapEditClassRec *BitmapEditWidgetClass;
  61. typedef struct _BitmapEditRec      *BitmapEditWidget;
  62.  
  63. #endif /* _ORABitmapEdit_h */
  64. /* DON'T ADD STUFF AFTER THIS #endif */
  65.