grub2: bring back build of aros-side grub2 tools
[AROS.git] / rom / intuition / sizewindow.c
blobf478f49c0ecdb46730cb4fe2f624b662de529811
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, SizeWindow,
16 /* SYNOPSIS */
17 AROS_LHA(struct Window *, window, A0),
18 AROS_LHA(LONG , dx, D0),
19 AROS_LHA(LONG , dy, D1),
21 /* LOCATION */
22 struct IntuitionBase *, IntuitionBase, 48, Intuition)
24 /* FUNCTION
25 Modify the size of a window by the specified offsets.
27 INPUTS
28 window - The window to resize.
29 dx - Add this to the width.
30 dy - Add this to the height.
32 RESULT
33 None.
35 NOTES
36 The resize of the window may be delayed. If you depend on the
37 information that is has changed size, wait for IDCMP_NEWSIZE.
39 EXAMPLE
41 BUGS
43 SEE ALSO
45 INTERNALS
47 *****************************************************************************/
49 AROS_LIBFUNC_INIT
51 SANITY_CHECK(window)
53 EXTENDWORD(dx);
54 EXTENDWORD(dy);
56 ChangeWindowBox(window, window->LeftEdge, window->TopEdge,
57 window->Width + dx, window->Height + dy);
59 AROS_LIBFUNC_EXIT
61 } /* SizeWindow */