home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / System / ReqToolsLib / Source / reqtools / rtunlockwindow.c < prev    next >
Encoding:
C/C++ Source or Header  |  2001-07-02  |  1.6 KB  |  78 lines

  1.  
  2. /*
  3.     (C) 1999 AROS - The Amiga Research OS
  4.     $Id: rtunlockwindow.c,v 1.6 2001/04/12 09:11:47 iaint Exp $
  5.  
  6.     Desc:
  7.     Lang: English
  8. */
  9.  
  10. #include <exec/types.h>
  11. #include <proto/exec.h>
  12. #include <proto/reqtools.h>
  13. #include <exec/libraries.h>
  14. #include <exec/memory.h>
  15. #include <aros/libcall.h>
  16. #include "general.h"
  17. #include "reqtools_intern.h"
  18. #include "rtfuncs.h"
  19.  
  20. /*****************************************************************************
  21.  
  22.     NAME */
  23.  
  24.     AROS_LH2(VOID, rtUnlockWindow,
  25.  
  26. /*  SYNOPSIS */
  27.  
  28.     AROS_LHA(struct Window *, window     , A0),
  29.     AROS_LHA(APTR           , windowlock , A1),
  30.  
  31. /*  LOCATION */
  32.  
  33.     struct ReqToolsBase *, ReqToolsBase, 27, ReqTools)
  34.  
  35. /*  FUNCTION
  36.     Unlock a window previously locked with rtLockWindow(). The window
  37.     will once again accept user input and will get its original mouse
  38.     pointer back (default or custom).
  39.  
  40.     Under Kickstart V39 or higher the original window pointer will not
  41.     be restored if it was set using SetWindowPointer(). You will have to
  42.     restore the pointer yourself in this case.
  43.  
  44.     INPUTS
  45.     window - pointer to the window to be unlocked.
  46.     windowlock - the windowlock pointer returned by rtLockWindow(), may
  47.         be NULL.
  48.  
  49.     RESULT
  50.     none
  51.  
  52.     NOTES
  53.     The mouse pointer has to be set back manually for now.
  54.  
  55.     EXAMPLE
  56.  
  57.     BUGS
  58.     none known
  59.  
  60.     SEE ALSO
  61.     rtLockWindow()
  62.  
  63.     INTERNALS
  64.     Needs semaphores to avoid race condition problems for multithreaded
  65.     applications.
  66.  
  67.     HISTORY
  68.  
  69. ******************************************************************************/
  70. {
  71.     AROS_LIBFUNC_INIT
  72.  
  73.     RTFuncs_rtUnlockWindow(window, windowlock);
  74.     
  75.     AROS_LIBFUNC_EXIT
  76.     
  77. } /* rtUnlockWindow */
  78.