Define USB 2.0 extension descriptor as Usb20ExtDesc
[AROS.git] / rom / intuition / iswindowvisible.c
blob695b48f42e8a6c85ff1d256e16f37fed9f458aac
1 /*
2 Copyright © 1995-2013, 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.
28 INPUTS
29 window - The window to affect.
31 RESULT
32 TRUE if window is currently visible, FALSE otherwise.
34 NOTES
35 This function is also present in MorphOS v50, however
36 considered private.
38 EXAMPLE
40 BUGS
42 SEE ALSO
44 INTERNALS
46 *****************************************************************************/
48 AROS_LIBFUNC_INIT
50 struct LayersBase *LayersBase = GetPrivIBase(IntuitionBase)->LayersBase;
52 SANITY_CHECKR(window,FALSE)
54 return IsLayerVisible(WLAYER(window));
56 AROS_LIBFUNC_EXIT
57 } /* IsWindowVisible */