Minor fixes to comments.
[AROS.git] / rom / intuition / iswindowvisible.c
blob5e74e88c298a7dda390ba3a67681f7258fd86814
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
4 $Id$
5 */
7 #include "intuition_intern.h"
9 /*****************************************************************************
11 NAME */
12 #include <proto/intuition.h>
13 #include <proto/layers.h>
15 AROS_LH1(LONG, IsWindowVisible,
17 /* SYNOPSIS */
18 AROS_LHA(struct Window *, window, A0),
20 /* LOCATION */
21 struct IntuitionBase *, IntuitionBase, 139, Intuition)
23 /* FUNCTION
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 INPUTS
30 window - The window to affect.
32 RESULT
33 TRUE if window is currently visible, FALSE otherwise.
35 NOTES
37 EXAMPLE
39 BUGS
41 SEE ALSO
43 INTERNALS
45 HISTORY
47 *****************************************************************************/
49 AROS_LIBFUNC_INIT
51 struct LayersBase *LayersBase = GetPrivIBase(IntuitionBase)->LayersBase;
53 SANITY_CHECKR(window,FALSE)
55 return IsLayerVisible(WLAYER(window));
57 AROS_LIBFUNC_EXIT
58 } /* IsWindowVisible */