1 2 /*- 3 # X-BASED PANEX(tm) 4 # 5 # Panex.h 6 # 7 ### 8 # 9 # Copyright (c) 1996 - 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 Panex */ 28 29 #ifndef _XtPanex_h 30 #define _XtPanex_h 31 32 /*********************************************************************** 33 * 34 * Panex Widget 35 * 36 ***********************************************************************/ 37 38 #define XtNselectCallback "selectCallback" 39 #define XtNuserName "userName" 40 #define XtNtiles "tiles" 41 #define XtNmode "mode" 42 #define XtNmono "mono" 43 #define XtNreverse "reverse" 44 #define XtNstart "start" 45 #define XtNtileColor "tileColor" 46 #define XtNtileBorder "tileBorder" 47 #define XtNpyramidColor0 "pyramidColor0" 48 #define XtNpyramidColor1 "pyramidColor1" 49 #define XtNdelay "delay" 50 #define XtCUserName "UserName" 51 #define XtCTiles "Tiles" 52 #define XtCMode "Mode" 53 #define XtCMono "Mono" 54 #define XtCReverse "Reverse" 55 #define XtCDelay "Delay" 56 #define PANEX_RESTORE (-6) 57 #define PANEX_RESET (-5) 58 #define PANEX_ILLEGAL (-4) 59 #define PANEX_BLOCKED (-3) 60 #define PANEX_SPACE (-2) 61 #define PANEX_IGNORE (-1) 62 #define PANEX_MOVED 0 63 #define PANEX_SOLVED 1 64 #define PANEX_DEC 2 65 #define PANEX_INC 3 66 #define PANEX_MODE 4 67 #define PANEX_COMPUTED 5 68 #define PANEX_UNDO 6 69 70 typedef struct _PanexClassRec *PanexWidgetClass; 71 typedef struct _PanexRec *PanexWidget; 72 73 extern WidgetClass panexWidgetClass; 74 75 typedef struct { 76 XEvent *event; 77 int reason; 78 } panexCallbackStruct; 79 80 #endif /* _XtPanex_h */ 81 /* DON'T ADD STUFF AFTER THIS #endif */ 82