grub2: bring back build of aros-side grub2 tools
[AROS.git] / rom / intuition / movescreen.c
blob0bfc0af9f41fdcb188e28371378431110a3ea7e0
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_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 *****************************************************************************/
53 AROS_LIBFUNC_INIT
55 ScreenPosition(screen, SPOS_RELATIVE, dx, dy, 0, 0);
57 AROS_LIBFUNC_EXIT
58 } /* MoveScreen */