1 
2 /*-
3 # X-BASED PYRAMINX(tm)
4 #
5 #  Pyraminx.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 Pyraminx */
28 
29 #ifndef _XtPyraminx_h
30 #define _XtPyraminx_h
31 
32 /***********************************************************************
33  *
34  * Pyraminx Widget
35  *
36  ***********************************************************************/
37 
38 #define XtNselectCallback "selectCallback"
39 #define XtNuserName "userName"
40 #define XtNmono "mono"
41 #define XtNreverse "reverse"
42 #define XtNsize "size"
43 #define XtNmode "mode"
44 #define XtNorient "orient"
45 #define XtNsticky "sticky"
46 #define XtNpractice "practice"
47 #define XtNstart "start"
48 #define XtNpieceBorder "pieceBorder"
49 #define XtNfaceColor0 "faceColor0"
50 #define XtNfaceColor1 "faceColor1"
51 #define XtNfaceColor2 "faceColor2"
52 #define XtNfaceColor3 "faceColor3"
53 #define XtCUserName "UserName"
54 #define XtCMono "Mono"
55 #define XtCReverse "Reverse"
56 #define XtCSize "Size"
57 #define XtCMode "Mode"
58 #define XtCOrient "Orient"
59 #define XtCSticky "Sticky"
60 #define XtCPractice "Practice"
61 #define PYRAMINX_RESTORE (-4)
62 #define PYRAMINX_RESET (-3)
63 #define PYRAMINX_AMBIGUOUS (-2)
64 #define PYRAMINX_ILLEGAL (-1)
65 #define PYRAMINX_MOVED 0
66 #define PYRAMINX_CONTROL 1
67 #define PYRAMINX_SOLVED 2
68 #define PYRAMINX_PRACTICE 3
69 #define PYRAMINX_RANDOMIZE 4
70 #define PYRAMINX_DEC 5
71 #define PYRAMINX_ORIENT 6
72 #define PYRAMINX_INC 7
73 #define PYRAMINX_PERIOD2 8
74 #define PYRAMINX_PERIOD3 9
75 #define PYRAMINX_BOTH 10
76 #define PYRAMINX_STICKY 11
77 #define PYRAMINX_COMPUTED 12
78 #define PYRAMINX_UNDO 13
79 
80 typedef struct _PyraminxClassRec *PyraminxWidgetClass;
81 typedef struct _PyraminxRec *PyraminxWidget;
82 
83 extern WidgetClass pyraminxWidgetClass;
84 
85 typedef struct {
86 	XEvent     *event;
87 	int         reason;
88 } pyraminxCallbackStruct;
89 
90 #endif /* _XtPyraminx_h */
91 /* DON'T ADD STUFF AFTER THIS #endif */
92