1 /* 2 LiteClue.h - Public definitions for LiteClue widget 3 See LiteClue documentation 4 5 Copyright 1996 COMPUTER GENERATION, INC., 6 7 The software is provided "as is", without warranty of any kind, express 8 or implied, including but not limited to the warranties of 9 merchantability, fitness for a particular purpose and noninfringement. 10 In no event shall Computer Generation, inc. nor the author be liable for 11 any claim, damages or other liability, whether in an action of contract, 12 tort or otherwise, arising from, out of or in connection with the 13 software or the use or other dealings in the software. 14 15 Permission to use, copy, modify, and distribute this software and its 16 documentation for any purpose and without fee is hereby granted, 17 provided that the above copyright notice appear in all copies and that 18 both that copyright notice and this permission notice appear in 19 supporting documentation. 20 21 Author: 22 Gary Aviv 23 Computer Generation, Inc., 24 gary@compgen.com 25 */ 26 /* Revision History: 27 $Log: LiteClue.h,v $ 28 Revision 1.5 1998/09/07 14:06:24 gary 29 Added const to prototype of XcgLiteClueAddWidget at request from user 30 31 Revision 1.4 1997/06/15 14:07:56 gary 32 Added XcgLiteClueDispatchEvent 33 34 Revision 1.3 1997/04/14 13:03:25 gary 35 Added XgcNwaitperiod XgcNcancelWaitPeriod and c++ wrappers 36 37 Revision 1.2 1996/10/20 13:39:25 gary 38 Version 1.2 freeze 39 40 Revision 1.1 1996/10/19 16:08:04 gary 41 Initial 42 43 44 $log 45 Added const to prototype of XcgLiteClueAddWidget at request from user 46 $log 47 */ 48 49 #ifndef _DEF_LiteClue_h 50 #define _DEF_LiteClue_h 51 #include <X11/StringDefs.h> 52 53 /* 54 * New resource names 55 */ 56 57 #define XgcNcancelWaitPeriod "cancelWaitPeriod" 58 #define XgcNwaitPeriod "waitPeriod" 59 #define XgcNwaitPeriod2 "waitPeriod2" 60 /* 61 * New resource classes 62 */ 63 #define XgcCCancelWaitPeriod "cancelWaitPeriod" 64 #define XgcCWaitPeriod "WaitPeriod" 65 #define XgcCWaitPeriod2 "WaitPeriod2" 66 67 #if defined(__cplusplus) || defined(c_plusplus) 68 extern "C" { 69 #endif 70 71 extern WidgetClass xcgLiteClueWidgetClass; 72 typedef struct _LiteClueClassRec *XcgLiteClueWidgetClass; 73 typedef struct _LiteClueRec *XcgLiteClueWidget; 74 void XcgLiteClueAddWidget(Widget w, Widget watch, const char * text, int size, int option ); 75 void XcgLiteClueDeleteWidget(Widget w, Widget watch); 76 void XcgLiteClueSetSensitive(Widget w, Widget watch, Boolean sensitive); 77 Boolean XcgLiteClueGetSensitive(Widget w, Widget watch); 78 Boolean XcgLiteClueDispatchEvent(Widget w, XEvent *event); 79 80 #if defined(__cplusplus) || defined(c_plusplus) 81 } 82 #endif 83 84 #endif 85