New bitmap method SetRGBConversionFunction which can be used to
[tangerine.git] / rom / intuition / viewportaddress.c
blob6b3e542ad186b804d258dec28aa98188f80e76a7
1 /*
2 Copyright © 1995-2003, 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 HISTORY
49 *****************************************************************************/
51 AROS_LIBFUNC_INIT
52 AROS_LIBBASE_EXT_DECL(struct IntuitionBase *, IntuitionBase)
54 /* shut up the compiler */
55 IntuitionBase = IntuitionBase;
57 return &(Window->WScreen->ViewPort);
59 AROS_LIBFUNC_EXIT
60 } /* ViewPortAddress */