2 Copyright © 1995-2013, 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.
29 window - The window to affect.
32 TRUE if window is currently visible, FALSE otherwise.
35 This function is also present in MorphOS v50, however
46 *****************************************************************************/
50 struct LayersBase
*LayersBase
= GetPrivIBase(IntuitionBase
)->LayersBase
;
52 SANITY_CHECKR(window
,FALSE
)
54 return IsLayerVisible(WLAYER(window
));
57 } /* IsWindowVisible */