home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROSdev.lha / AROS / rom / intuition / sizewindow.c < prev    next >
C/C++ Source or Header  |  1997-01-27  |  2KB  |  88 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: sizewindow.c,v 1.6 1997/01/27 00:36:43 ldp Exp $
  4.     $Log: sizewindow.c,v $
  5.     Revision 1.6  1997/01/27 00:36:43  ldp
  6.     Polish
  7.  
  8.     Revision 1.5  1996/12/10 14:00:10  aros
  9.     Moved #include into first column to allow makedepend to see it.
  10.  
  11.     Revision 1.4  1996/11/08 11:28:04  aros
  12.     All OS function use now Amiga types
  13.  
  14.     Moved intuition-driver protos to intuition_intern.h
  15.  
  16.     Revision 1.3  1996/10/24 15:51:25  aros
  17.     Use the official AROS macros over the __AROS versions.
  18.  
  19.     Revision 1.2  1996/08/29 13:57:38  digulla
  20.     Commented
  21.     Moved common code from driver to Intuition
  22.  
  23.     Revision 1.1  1996/08/23 17:28:17  digulla
  24.     Several new functions; some still empty.
  25.  
  26.  
  27.     Desc:
  28.     Lang: english
  29. */
  30. #include "intuition_intern.h"
  31.  
  32. /*****************************************************************************
  33.  
  34.     NAME */
  35. #include <proto/intuition.h>
  36.  
  37.     AROS_LH3(void, SizeWindow,
  38.  
  39. /*  SYNOPSIS */
  40.     AROS_LHA(struct Window *, window, A0),
  41.     AROS_LHA(LONG           , dx, D0),
  42.     AROS_LHA(LONG           , dy, D1),
  43.  
  44. /*  LOCATION */
  45.     struct IntuitionBase *, IntuitionBase, 48, Intuition)
  46.  
  47. /*  FUNCTION
  48.     Modify the size of a window by the specified offsets.
  49.  
  50.     INPUTS
  51.     window - The window to resize.
  52.     dx - Add this to the width.
  53.     dy - Add this to the height.
  54.  
  55.     RESULT
  56.     None.
  57.  
  58.     NOTES
  59.     The resize of the window may be delayed. If you depend on the
  60.     information that is has changed size, wait for IDCMP_NEWSIZE.
  61.  
  62.     EXAMPLE
  63.  
  64.     BUGS
  65.  
  66.     SEE ALSO
  67.  
  68.     INTERNALS
  69.  
  70.     HISTORY
  71.     29-10-95    digulla automatically created from
  72.                 intuition_lib.fd and clib/intuition_protos.h
  73.  
  74. *****************************************************************************/
  75. {
  76.     AROS_LIBFUNC_INIT
  77.     AROS_LIBBASE_EXT_DECL(struct IntuitionBase *,IntuitionBase)
  78.  
  79.     /* Call the driver before changing the window */
  80.     intui_SizeWindow (window, dx, dy);
  81.  
  82.     /* Adjust the window's attributes */
  83.     window->Width += dx;
  84.     window->Height += dy;
  85.  
  86.     AROS_LIBFUNC_EXIT
  87. } /* SizeWindow */
  88.