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 >
Wrap
C/C++ Source or Header
|
1992-07-08
|
2KB
|
65 lines
/*
* Copyright 1989, 1992 O'Reilly and Associates, Inc.
* See ../Copyright for complete rights and liability information.
*/
#ifndef _ORABitmapEdit_h
#define _ORABitmapEdit_h
/*
* BitmapEdit Widget public include file
*/
/*
* The public header file for the immediate superclass normally
* must be included. However, not in this case because the public
* header file for Primitive is in Xm.h, which is already included
* in all Motif applications.
*/
/* #include <Xm/Superclass.h> */
/*
* This public structure is used as call_data to the callback.
* It passes the x, y position of the cell toggled (in units of
* cells, not pixels) and a mode flag that indicates whether the
* cell was turned on (1) or off (0).
*/
typedef struct {
int mode;
int newx;
int newy;
} BitmapEditPointInfo;
#define XtNtoggleCallback "toggleCallback"
#define XtNcellSizeInPixels "cellSizeInPixels"
#define XtNpixmapWidthInCells "pixmapWidthInCells"
#define XtNpixmapHeightInCells "pixmapHeightInCells"
#define XtNcurX "curX"
#define XtNcurY "curY"
#define XtNcellArray "cellArray"
#define XtNshowEntireBitmap "showEntireBitmap"
#define XtCToggleCallback "ToggleCallback"
#define XtCCellSizeInPixels "CellSizeInPixels"
#define XtCPixmapWidthInCells "PixmapWidthInCells"
#define XtCPixmapHeightInCells "PixmapHeightInCells"
#define XtCCurX "CurX"
#define XtCCurY "CurY"
#define XtCCellArray "CellArray"
#define XtCShowEntireBitmap "ShowEntireBitmap"
extern char *BitmapEditGetArray(); /* w */
/* Widget w; */
/* Class record constants */
extern WidgetClass bitmapEditWidgetClass;
typedef struct _BitmapEditClassRec *BitmapEditWidgetClass;
typedef struct _BitmapEditRec *BitmapEditWidget;
#endif /* _ORABitmapEdit_h */
/* DON'T ADD STUFF AFTER THIS #endif */