define __KERNEL_STRICT_NAMES to avoid inclusion of kernel types on systems that carry...
[cake.git] / rom / intuition / movescreen.c
blobcd47bae397aa2345da9993f873a2b1871fb86c33
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_LH3(void, MoveScreen,
16 /* SYNOPSIS */
17 AROS_LHA(struct Screen *, screen, A0),
18 AROS_LHA(LONG , dx, D0),
19 AROS_LHA(LONG , dy, D1),
21 /* LOCATION */
22 struct IntuitionBase *, IntuitionBase, 27, Intuition)
24 /* FUNCTION
25 Move a screen by the specified amount in X/Y direction. The
26 resolution is always the screen resolution.
28 INPUTS
29 screen - Move this screen
30 dx - Move it by this amount along the X axis (> 0 to the right,
31 < 0 to the left).
32 dy - Move it by this amount along the Y axis (> 0 down, < 0 up)
34 RESULT
35 None.
37 NOTES
38 Depending on other restrictions, the screen may not move as far
39 as specified. It will move as far as possible and you can check
40 LeftEdge and TopEdge of the screen to see how far it got.
42 EXAMPLE
44 BUGS
46 SEE ALSO
47 RethinkDisplay()
49 INTERNALS
51 HISTORY
52 27-11-96 digulla automatically created from
53 intuition_lib.fd and clib/intuition_protos.h
55 *****************************************************************************/
57 AROS_LIBFUNC_INIT
59 ScreenPosition(screen, SPOS_RELATIVE, dx, dy, 0, 0);
61 AROS_LIBFUNC_EXIT
62 } /* MoveScreen */