1 
2 /*-
3 # X-BASED DINOSAUR CUBE
4 #
5 #  Dino.h
6 #
7 ###
8 #
9 #  Copyright (c) 1995 - 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 Dino */
28 
29 #ifndef _XtDino_h
30 #define _XtDino_h
31 
32 /***********************************************************************
33  *
34  * Dino Widget
35  *
36  ***********************************************************************/
37 
38 #define XtNselectCallback "selectCallback"
39 #define XtNuserName "userName"
40 #define XtNmode "mode"
41 #define XtNorient "orient"
42 #define XtNmono "mono"
43 #define XtNreverse "reverse"
44 #define XtNface "face"
45 #define XtNpos "position"
46 #define XtNdirection "direction"
47 #define XtNstyle "style"
48 #define XtNpractice "practice"
49 #define XtNstart "start"
50 #define XtNpieceBorder "pieceBorder"
51 #define XtNfaceColor0 "faceColor0"
52 #define XtNfaceColor1 "faceColor1"
53 #define XtNfaceColor2 "faceColor2"
54 #define XtNfaceColor3 "faceColor3"
55 #define XtNfaceColor4 "faceColor4"
56 #define XtNfaceColor5 "faceColor5"
57 #define XtCUserName "UserName"
58 #define XtCMode "Mode"
59 #define XtCOrient "Orient"
60 #define XtCMono "Mono"
61 #define XtCReverse "Reverse"
62 #define XtCFace "Face"
63 #define XtCPos "Position"
64 #define XtCDirection "Direction"
65 #define XtCStyle "Style"
66 
67 #define DINO_RESTORE (-4)
68 #define DINO_RESET (-3)
69 #define DINO_ILLEGAL (-2)
70 #define DINO_IGNORE (-1)
71 #define DINO_MOVED 0
72 #define DINO_CONTROL 1
73 #define DINO_SOLVED 2
74 #define DINO_PRACTICE 3
75 #define DINO_RANDOMIZE 4
76 #define DINO_DEC 5
77 #define DINO_ORIENT 6
78 #define DINO_INC 7
79 #define DINO_PERIOD2 8
80 #define DINO_PERIOD3 9
81 #define DINO_BOTH 10
82 #define DINO_COMPUTED 11
83 #define DINO_UNDO 12
84 
85 typedef struct _DinoClassRec *DinoWidgetClass;
86 typedef struct _DinoRec *DinoWidget;
87 
88 extern WidgetClass dinoWidgetClass;
89 
90 typedef struct {
91 	XEvent     *event;
92 	int         reason;
93 	int         face, position, direction, style;
94 } dinoCallbackStruct;
95 
96 #endif /* _XtDino_h */
97 /* DON'T ADD STUFF AFTER THIS #endif */
98