1 
2 /*-
3 # X-BASED MASTERBALL(tm)
4 #
5 #  Mball.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 Mball */
28 
29 #ifndef _XtMball_h
30 #define _XtMball_h
31 
32 /***********************************************************************
33  *
34  * Mball Widget
35  *
36  ***********************************************************************/
37 
38 #define XtNselectCallback "selectCallback"
39 #define XtNuserName "userName"
40 #define XtNbase "base"
41 #define XtNmono "mono"
42 #define XtNreverse "reverse"
43 #define XtNwedges "wedges"
44 #define XtNrings "rings"
45 #define XtNorient "orient"
46 #define XtNpractice "practice"
47 #define XtNstart "start"
48 #define XtNpieceBorder "pieceBorder"
49 #define XtNwedgeColor0 "wedgeColor0"
50 #define XtNwedgeColor1 "wedgeColor1"
51 #define XtNwedgeColor2 "wedgeColor2"
52 #define XtNwedgeColor3 "wedgeColor3"
53 #define XtNwedgeColor4 "wedgeColor4"
54 #define XtNwedgeColor5 "wedgeColor5"
55 #define XtNwedgeColor6 "wedgeColor6"
56 #define XtNwedgeColor7 "wedgeColor7"
57 #define XtNwedgeColor8 "wedgeColor8"
58 #define XtNwedgeColor9 "wedgeColor9"
59 #define XtNwedgeColor10 "wedgeColor10"
60 #define XtNwedgeColor11 "wedgeColor11"
61 #define XtCUserName "UserName"
62 #define XtCBase "Base"
63 #define XtCMono "Mono"
64 #define XtCReverse "Reverse"
65 #define XtCWedges "Wedges"
66 #define XtCRings "Rings"
67 #define XtCOrient "Orient"
68 #define XtCPractice "Practice"
69 #define MBALL_RESTORE (-4)
70 #define MBALL_RESET (-3)
71 #define MBALL_AMBIGUOUS (-2)
72 #define MBALL_ILLEGAL (-1)
73 #define MBALL_MOVED 0
74 #define MBALL_CONTROL 1
75 #define MBALL_SOLVED 2
76 #define MBALL_PRACTICE 3
77 #define MBALL_RANDOMIZE 4
78 #define MBALL_DEC 5
79 #define MBALL_ORIENT 6
80 #define MBALL_INC 7
81 #define MBALL_WEDGE2 8
82 #define MBALL_WEDGE4 9
83 #define MBALL_WEDGE6 10
84 #define MBALL_WEDGE8 11
85 #define MBALL_WEDGE10 12
86 #define MBALL_WEDGE12 13
87 #define MBALL_COMPUTED 14
88 #define MBALL_UNDO 15
89 
90 typedef struct _MballClassRec *MballWidgetClass;
91 typedef struct _MballRec *MballWidget;
92 
93 extern WidgetClass mballWidgetClass;
94 
95 typedef struct {
96 	XEvent     *event;
97 	int         reason;
98 } mballCallbackStruct;
99 
100 #endif /* _XtMball_h */
101 /* DON'T ADD STUFF AFTER THIS #endif */
102