1 
2 /*-
3 # X-BASED MISSING LINK(tm)
4 #
5 #  Mlink.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 Mlink */
28 
29 #ifndef _XtMlink_h
30 #define _XtMlink_h
31 
32 /***********************************************************************
33  *
34  * Mlink Widget
35  *
36  ***********************************************************************/
37 
38 #define XtNselectCallback "selectCallback"
39 #define XtNuserName "userName"
40 #define XtNtiles "tiles"
41 #define XtNfaces "faces"
42 #define XtNorient "orient"
43 #define XtNmiddle "middle"
44 #define XtNbase "base"
45 #define XtNmono "mono"
46 #define XtNreverse "reverse"
47 #define XtNstart "start"
48 #define XtNtileColor "tileColor"
49 #define XtNtileBorder "tileBorder"
50 #define XtNfaceColor0 "faceColor0"
51 #define XtNfaceColor1 "faceColor1"
52 #define XtNfaceColor2 "faceColor2"
53 #define XtNfaceColor3 "faceColor3"
54 #define XtNfaceColor4 "faceColor4"
55 #define XtNfaceColor5 "faceColor5"
56 #define XtNfaceColor6 "faceColor6"
57 #define XtNfaceColor7 "faceColor7"
58 #define XtCUserName "UserName"
59 #define XtCTiles "Tiles"
60 #define XtCFaces "Faces"
61 #define XtCOrient "Orient"
62 #define XtCMiddle "Middle"
63 #define XtCBase "Base"
64 #define XtCMono "Mono"
65 #define XtCReverse "Reverse"
66 #define MLINK_RESTORE (-5)
67 #define MLINK_RESET (-4)
68 #define MLINK_BLOCKED (-3)
69 #define MLINK_SPACE (-2)
70 #define MLINK_IGNORE (-1)
71 #define MLINK_MOVED 0
72 #define MLINK_SOLVED 1
73 #define MLINK_CONTROL 2
74 #define MLINK_RANDOMIZE 3
75 #define MLINK_ORIENT 4
76 #define MLINK_MIDDLE 5
77 #define MLINK_DEC_X 6
78 #define MLINK_INC_X 7
79 #define MLINK_DEC_Y 8
80 #define MLINK_INC_Y 9
81 #define MLINK_COMPUTED 10
82 #define MLINK_UNDO 11
83 
84 typedef struct _MlinkClassRec *MlinkWidgetClass;
85 typedef struct _MlinkRec *MlinkWidget;
86 
87 extern WidgetClass mlinkWidgetClass;
88 
89 typedef struct {
90 	XEvent     *event;
91 	int         reason;
92 } mlinkCallbackStruct;
93 
94 #endif /* _XtMlink_h */
95 /* DON'T ADD STUFF AFTER THIS #endif */
96