1 2 /*- 3 # X-BASED CUBES 4 # 5 # Cubes.h 6 # 7 ### 8 # 9 # Copyright (c) 1994 - 99 David Albert Bagley, bagleyd@tux.org 10 # 11 # All Rights Reserved 12 # 13 # Permission to use, copy, modify, and distribute this software and 14 # its documentation for any purpose and without fee is hereby granted, 15 # provided that the above copyright notice appear in all copies and 16 # that both that copyright notice and this permission notice appear in 17 # supporting documentation, and that the name of the author not be 18 # used in advertising or publicity pertaining to distribution of the 19 # software without specific, written prior permission. 20 # 21 # This program is distributed in the hope that it will be "playable", 22 # but WITHOUT ANY WARRANTY; without even the implied warranty of 23 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 24 # 25 */ 26 27 /* Public header file for Cubes */ 28 29 #ifndef _XtCubes_h 30 #define _XtCubes_h 31 32 /*********************************************************************** 33 * 34 * Cubes Widget 35 * 36 ***********************************************************************/ 37 38 #define XtNselectCallback "selectCallback" 39 #define XtNuserName "userName" 40 #define XtNsizeX "sizeX" 41 #define XtNsizeY "sizeY" 42 #define XtNsizeZ "sizeZ" 43 #define XtNbase "base" 44 #define XtNmono "mono" 45 #define XtNreverse "reverse" 46 #define XtNstart "start" 47 #define XtNbrickColor "brickColor" 48 #define XtNbrickBorder "brickBorder" 49 #define XtCUserName "UserName" 50 #define XtCSizeX "SizeX" 51 #define XtCSizeY "SizeY" 52 #define XtCSizeZ "SizeZ" 53 #define XtCBase "Base" 54 #define XtCMono "Mono" 55 #define XtCReverse "Reverse" 56 #define CUBES_RESTORE (-5) 57 #define CUBES_RESET (-4) 58 #define CUBES_BLOCKED (-3) 59 #define CUBES_SPACE (-2) 60 #define CUBES_IGNORE (-1) 61 #define CUBES_MOVED 0 62 #define CUBES_SOLVED 1 63 #define CUBES_PRACTICE 2 64 #define CUBES_RANDOMIZE 3 65 #define CUBES_DEC_X 4 66 #define CUBES_INC_X 5 67 #define CUBES_DEC_Y 6 68 #define CUBES_INC_Y 7 69 #define CUBES_DEC_Z 8 70 #define CUBES_INC_Z 9 71 #define CUBES_COMPUTED 10 72 #define CUBES_UNDO 11 73 74 typedef struct _CubesClassRec *CubesWidgetClass; 75 typedef struct _CubesRec *CubesWidget; 76 77 extern WidgetClass cubesWidgetClass; 78 79 typedef struct { 80 XEvent *event; 81 int reason; 82 } cubesCallbackStruct; 83 84 #endif /* _XtCubes_h */ 85 /* DON'T ADD STUFF AFTER THIS #endif */ 86