2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
7 #include "intuition_intern.h"
9 /*****************************************************************************
12 #include <proto/intuition.h>
13 #include <proto/layers.h>
15 AROS_LH1(LONG
, IsWindowVisible
,
18 AROS_LHA(struct Window
*, window
, A0
),
21 struct IntuitionBase
*, IntuitionBase
, 139, Intuition
)
24 Check whether a window is visible or not. This does not
25 check whether the window is within the visible area of
26 the screen but rather whether it is in visible state.
30 window - The window to affect.
33 TRUE if window is currently visible, FALSE otherwise.
47 *****************************************************************************/
51 /* shut up the compiler */
52 IntuitionBase
= IntuitionBase
;
54 SANITY_CHECKR(window
,FALSE
)
56 return IsLayerVisible(WLAYER(window
));
59 } /* IsWindowVisible */