1 /*---------------------------------------------------------------------------- 2 -- 3 -- Module: xitInfo 4 -- 5 -- Project: xit - X Internal Toolkit 6 -- System: <> 7 -- Subsystem: <> 8 -- Function block: <> 9 -- 10 -- Description: 11 -- Interface file to module xitInfo. 12 -- 13 -- Filename: xitInfo.h 14 -- 15 -- Authors: Roger Larsson, Ulrika Bornetun 16 -- Creation date: 1992-10-17 17 -- 18 -- 19 -- (C) Copyright Ulrika Bornetun, Roger Larsson (1995) 20 -- All rights reserved 21 -- 22 -- Permission to use, copy, modify, and distribute this software and its 23 -- documentation for any purpose and without fee is hereby granted, 24 -- provided that the above copyright notice appear in all copies. Ulrika 25 -- Bornetun and Roger Larsson make no representations about the usability 26 -- of this software for any purpose. It is provided "as is" without express 27 -- or implied warranty. 28 ----------------------------------------------------------------------------*/ 29 30 /* SCCS module identifier. */ 31 /* SCCSID = @(#) Module: xitInfo.h, Version: 1.1, Date: 95/02/18 15:10:35 */ 32 33 34 /* Only include this module once. */ 35 #ifndef define_xitInfo_h 36 # define define_xitInfo_h 37 38 39 /*---------------------------------------------------------------------------- 40 -- Include files 41 ----------------------------------------------------------------------------*/ 42 43 44 /*---------------------------------------------------------------------------- 45 -- Macro definitions 46 ----------------------------------------------------------------------------*/ 47 48 49 /*---------------------------------------------------------------------------- 50 -- Type declarations 51 ----------------------------------------------------------------------------*/ 52 53 /* Reasons when the action routine is called. */ 54 typedef enum { 55 XIT_IN_REASON_DESTROY, 56 XIT_IN_REASON_UPDATE, 57 XIT_IN_REASON_POPDOWN 58 } XIT_IN_REASON; 59 60 61 /* Callback function. */ 62 typedef void ( *XIT_IN_ACTION_CB ) ( XIT_IN_REASON, void * ); 63 64 /* Handle to the info window. */ 65 typedef void *XIT_IN_HANDLE; 66 67 68 /*---------------------------------------------------------------------------- 69 -- Global definitions 70 ----------------------------------------------------------------------------*/ 71 72 73 /*---------------------------------------------------------------------------- 74 -- Function prototypes 75 ----------------------------------------------------------------------------*/ 76 77 void 78 xitInDestroy( XIT_IN_HANDLE info_handle ); 79 80 void 81 xitInDisplayToc( XIT_IN_HANDLE info_handle ); 82 83 XIT_IN_HANDLE 84 xitInInitialize( Widget parent, 85 XIT_IN_ACTION_CB actionCB, 86 void *user_data ); 87 88 void 89 xitInDisplayInfo( XIT_IN_HANDLE info_handle, 90 char *book, 91 char *chapter_id ); 92 93 void 94 xitInDisplayToc( XIT_IN_HANDLE info_handle ); 95 96 #endif 97