Minor fixes to comments.
[AROS.git] / rom / intuition / wbenchtofront.c
blob62bcbef8d2a601108e68c569e9bfc06ae798bcb1
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>
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
26 RESULT
27 TRUE if the Workbench screen is open, FALSE else.
29 NOTES
30 This function does not influence the position of the screen,
31 it just changes the depth-arrangement of the screens.
33 EXAMPLE
35 BUGS
37 SEE ALSO
38 ScreenToBack(), ScreenToFront(), WBenchToBack()
40 INTERNALS
42 HISTORY
44 *****************************************************************************/
46 AROS_LIBFUNC_INIT
48 struct Screen *curscreen;
50 curscreen = GetPrivIBase(IntuitionBase)->WorkBench;
52 if ( curscreen )
54 ScreenToFront ( curscreen );
55 return TRUE;
57 else
59 return FALSE;
62 AROS_LIBFUNC_EXIT
63 } /* WBenchToFront */