File: Panex.h

package info (click to toggle)
xpuzzles 5.4.3-1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 3,576 kB
  • ctags: 3,879
  • sloc: ansic: 34,831; makefile: 1,815; sh: 1,526
file content (81 lines) | stat: -rw-r--r-- 2,215 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/*-
# X-BASED PANEX(tm)
#
#  Panex.h
#
###
#
#  Copyright (c) 1996 - 97	David Albert Bagley, bagleyd@bigfoot.com
#
#                   All Rights Reserved
#
#  Permission to use, copy, modify, and distribute this software and
#  its documentation for any purpose and without fee is hereby granted,
#  provided that the above copyright notice appear in all copies and
#  that both that copyright notice and this permission notice appear in
#  supporting documentation, and that the name of the author not be
#  used in advertising or publicity pertaining to distribution of the
#  software without specific, written prior permission.
#
#  This program is distributed in the hope that it will be "playable",
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
*/

/* Public header file for Panex */

#ifndef _XtPanex_h
#define _XtPanex_h

/***********************************************************************
 *
 * Panex Widget
 *
 ***********************************************************************/

#define XtNselectCallback "selectCallback"
#define XtNuserName "userName"
#define XtNtiles "tiles"
#define XtNmode "mode"
#define XtNmono "mono"
#define XtNbase "base"
#define XtNstart "start"
#define XtNstackColor "stackColor"
#define XtNtileColor "tileColor"
#define XtNtileBorder "tileBorder"
#define XtNpyramidColor0 "pyramidColor0"
#define XtNpyramidColor1 "pyramidColor1"
#define XtNdelay "delay"
#define XtCUserName "UserName"
#define XtCTiles "Tiles"
#define XtCMode "Mode"
#define XtCMono "Mono"
#define XtCBase "Base"
#define XtCDelay "Delay"
#define PANEX_RESTORE (-6)
#define PANEX_RESET (-5)
#define PANEX_ILLEGAL (-4)
#define PANEX_BLOCKED (-3)
#define PANEX_SPACE (-2)
#define PANEX_IGNORE (-1)
#define PANEX_MOVED 0
#define PANEX_SOLVED 1
#define PANEX_DEC 2
#define PANEX_INC 3
#define PANEX_MODE 4
#define PANEX_COMPUTED 5
#define PANEX_UNDO 6

typedef struct _PanexClassRec *PanexWidgetClass;
typedef struct _PanexRec *PanexWidget;

extern WidgetClass panexWidgetClass;

typedef struct {
	XEvent     *event;
	int         reason;
} panexCallbackStruct;

#endif /* _XtPanex_h */
/* DON'T ADD STUFF AFTER THIS #endif */