try to make sure compiler/include/mmakefile is always refreshed correctly.
[AROS.git] / rom / intuition / wbenchtofront.c
blobf4263fe40db40c2bcc16cdf73d808a4939578a78
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>
14 AROS_LH0(BOOL, WBenchToFront,
16 /* SYNOPSIS */
18 /* LOCATION */
19 struct IntuitionBase *, IntuitionBase, 57, Intuition)
21 /* FUNCTION
22 Make the WorkBench screen the frontmost.
24 INPUTS
25 None.
27 RESULT
28 TRUE if the Workbench screen is open, FALSE else.
30 NOTES
31 This function does not influence the position of the screen,
32 it just changes the depth-arrangement of the screens.
34 EXAMPLE
36 BUGS
38 SEE ALSO
39 ScreenToBack(), ScreenToFront(), WBenchToBack()
41 INTERNALS
43 *****************************************************************************/
45 AROS_LIBFUNC_INIT
47 struct Screen *curscreen;
49 curscreen = GetPrivIBase(IntuitionBase)->WorkBench;
51 if ( curscreen )
53 ScreenToFront ( curscreen );
54 return TRUE;
56 else
58 return FALSE;
61 AROS_LIBFUNC_EXIT
62 } /* WBenchToFront */