check for the existence of /usr/include on darwin and warn about if it is missing
[AROS.git] / rom / intuition / viewportaddress.c
blob536f15510ab997a92f4eab0217ca4060f2198617
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 <graphics/view.h>
8 #include <intuition/intuition.h>
9 #include <aros/libcall.h>
11 /*****************************************************************************
13 NAME */
14 #include <proto/intuition.h>
16 AROS_LH1(struct ViewPort *, ViewPortAddress,
18 /* SYNOPSIS */
19 AROS_LHA(struct Window *, Window, A0),
21 /* LOCATION */
22 struct IntuitionBase *, IntuitionBase, 50, Intuition)
24 /* FUNCTION
25 Returns the address of the viewport of a given window. Use this
26 call, if you want to use any graphics, text or animation functions
27 that require the address of a viewport for your window.
29 INPUTS
30 Window - pointer to a Window structure
32 RESULT
33 Address of the Intuition ViewPort structure for the screen that your
34 window is displayed on.
36 NOTES
38 EXAMPLE
40 BUGS
42 SEE ALSO
43 graphics.library
45 INTERNALS
47 *****************************************************************************/
49 AROS_LIBFUNC_INIT
51 /* shut up the compiler */
52 IntuitionBase = IntuitionBase;
54 return &(Window->WScreen->ViewPort);
56 AROS_LIBFUNC_EXIT
57 } /* ViewPortAddress */