1 
2 /*-
3 # X-BASED TRIANGLES
4 #
5 #  Triangles.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 Triangles */
28 
29 #ifndef _XtTriangles_h
30 #define _XtTriangles_h
31 
32 /***********************************************************************
33  *
34  * Triangles Widget
35  *
36  ***********************************************************************/
37 
38 #define XtNselectCallback "selectCallback"
39 #define XtNuserName "userName"
40 #define XtNsize "size"
41 #define XtNbase "base"
42 #define XtNstart "start"
43 #define XtNmono "mono"
44 #define XtNreverse "reverse"
45 #define XtNtileColor "tileColor"
46 #define XtNtileBorder "tileBorder"
47 #define XtCUserName "UserName"
48 #define XtCSize "Size"
49 #define XtCBase "Base"
50 #define XtCMono "Mono"
51 #define XtCReverse "Reverse"
52 #define TRIANGLES_RESTORE (-5)
53 #define TRIANGLES_RESET (-4)
54 #define TRIANGLES_BLOCKED (-3)
55 #define TRIANGLES_SPACE (-2)
56 #define TRIANGLES_IGNORE (-1)
57 #define TRIANGLES_MOVED 0
58 #define TRIANGLES_SOLVED 1
59 #define TRIANGLES_PRACTICE 2
60 #define TRIANGLES_RANDOMIZE 3
61 #define TRIANGLES_DEC 4
62 #define TRIANGLES_INC 5
63 #define TRIANGLES_COMPUTED 6
64 #define TRIANGLES_UNDO 7
65 
66 typedef struct _TrianglesClassRec *TrianglesWidgetClass;
67 typedef struct _TrianglesRec *TrianglesWidget;
68 
69 extern WidgetClass trianglesWidgetClass;
70 
71 typedef struct {
72 	XEvent     *event;
73 	int         reason;
74 } trianglesCallbackStruct;
75 
76 #endif /* _XtTriangles_h */
77 /* DON'T ADD STUFF AFTER THIS #endif */
78