2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
9 #include <exec/types.h>
10 #include <proto/exec.h>
11 #include <proto/reqtools.h>
12 #include <proto/intuition.h>
13 #include <exec/libraries.h>
14 #include <exec/memory.h>
15 #include <aros/libcall.h>
16 #include "reqtools_intern.h"
20 /*****************************************************************************
24 AROS_LH1(APTR
, rtLockWindow
,
28 AROS_LHA(struct Window
*, window
, A0
),
32 struct ReqToolsBase
*, ReqToolsBase
, 26, ReqTools
)
36 Lock a window so it will no longer accept any user input. The only
37 functions left to the user are depth arrangement and window dragging.
38 All gadgets will be un-selectable and the window can not be resized.
39 It will also get the standard wait pointer set. The pointer at the
40 time of locking will be restored when the window is unlocked.
42 You may nest calls to rtLockWindow() and rtUnlockWindow(). Just make
43 sure you unlock the window in the correct (opposite) order.
45 See the RT_LockWindow tag for an automatic way of locking your window.
47 Use this function (and rtUnlockWindow()) instead of rtSetWaitPointer().
51 window -- pointer to the window to be locked
55 a pointer to a (private) window lock. You must pass this to
56 rtUnlockWindow() to unlock the window again. Never mind if this is NULL.
57 This means there was not enough memory and the window will not be locked.
58 There is no sense in reporting this, just carry on and pass the NULL
59 window lock to rtUnlockWindow().
62 The wait pointer will look exactly like the standard Workbench 2.0
63 wait pointer. In combination with PointerX, ClockTick or
64 LacePointer the handle will turn.
77 ******************************************************************************/
81 return RTFuncs_rtLockWindow(window
);