home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / djgpp / contrib / dvx / inc / x11 / callback.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-15  |  2.5 KB  |  77 lines

  1. /* $XConsortium: CallbackI.h,v 1.11 90/08/29 13:09:40 swick Exp $ */
  2. /***********************************************************
  3. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
  4. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  5.  
  6.                         All Rights Reserved
  7.  
  8. Permission to use, copy, modify, and distribute this software and its 
  9. documentation for any purpose and without fee is hereby granted, 
  10. provided that the above copyright notice appear in all copies and that
  11. both that copyright notice and this permission notice appear in 
  12. supporting documentation, and that the names of Digital or MIT not be
  13. used in advertising or publicity pertaining to distribution of the
  14. software without specific, written prior permission.  
  15.  
  16. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  17. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  18. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  19. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  20. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  21. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  22. SOFTWARE.
  23.  
  24. ******************************************************************/
  25.  
  26. /****************************************************************
  27.  *
  28.  * Callbacks
  29.  *
  30.  ****************************************************************/
  31.  
  32. typedef struct _XtOffsetRec {
  33.      struct _XtOffsetRec *next;
  34.      XrmQuark       name;
  35.      XrmQuark       offset; /* Was int POHC 91/04/08 */
  36. } XtOffsetRec, *_XtOffsetList;
  37.  
  38. typedef struct _CallbackRec *CallbackList;
  39. typedef struct _CallbackStruct CallbackStruct;
  40.  
  41. extern void _XtRemoveAllCallbacks(
  42. #if NeedFunctionPrototypes
  43.     CallbackList*    /* callbackList */
  44. #endif
  45. );
  46.  
  47. extern void _XtCallCallbacks(
  48. #if NeedFunctionPrototypes
  49.     CallbackList*    /* callbacks */,
  50.     XtPointer         /* callData */
  51. #endif
  52. );
  53.  
  54. extern void _XtAddCallback(
  55. #if NeedFunctionPrototypes
  56.     Widget         /* widget */,
  57.     CallbackList*    /* callbacks */,
  58.     XtCallbackProc    /* callback */,
  59.     XtPointer         /* closure */
  60. #endif
  61. );
  62.  
  63. extern void _XtAddCallbackOnce(
  64. #if NeedFunctionPrototypes
  65.     Widget         /* widget */,
  66.     CallbackList*    /* callbacks */,
  67.     XtCallbackProc    /* callback */,
  68.     XtPointer         /* closure */
  69. #endif
  70. );
  71.  
  72. extern CallbackList* _XtCallbackList(
  73. #if NeedFunctionPrototypes
  74.     CallbackStruct*    /* callbacks */
  75. #endif
  76. );
  77.