define __KERNEL_STRICT_NAMES to avoid inclusion of kernel types on systems that carry...
[cake.git] / rom / intuition / iswindowvisible.c
blobda7551d71b30174bef9d9122b374b07719adc8ad
1 /*
2 Copyright © 1995-2007, 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 /* shut up the compiler */
52 IntuitionBase = IntuitionBase;
54 SANITY_CHECKR(window,FALSE)
56 return IsLayerVisible(WLAYER(window));
58 AROS_LIBFUNC_EXIT
59 } /* IsWindowVisible */