home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 377a.lha / libraries / intuition / granitewindow.h next >
C/C++ Source or Header  |  1980-02-04  |  2KB  |  53 lines

  1.  
  2. /* graniteWindow.h -- This file implements a fairly ordinary window. */
  3. /* Copyright (c) 1990 Commodore-Amiga, Inc.
  4.  *
  5.  * This example is provided in electronic form by Commodore-Amiga, Inc. for
  6.  * use with the 1.3 revisions of the Addison-Wesley Amiga reference manuals. 
  7.  * The 1.3 Addison-Wesley Amiga Reference Manual series contains additional
  8.  * information on the correct usage of the techniques and operating system
  9.  * functions presented in this example.  The source and executable code of
  10.  * this example may only be distributed in free electronic form, via bulletin
  11.  * board or as part of a fully non-commercial and freely redistributable
  12.  * diskette.  Both the source and executable code (including comments) must
  13.  * be included, without modification, in any copy.  This example may not be
  14.  * published in printed form or distributed with any commercial product.
  15.  * However, the programming techniques and support routines set forth in
  16.  * this example may be used in the development of original executable
  17.  * software products for Commodore Amiga computers.
  18.  * All other rights reserved.
  19.  * This example is provided "as-is" and is subject to change; no warranties
  20.  * are made.  All use is at your own risk.  No liability or responsibility
  21.  * is assumed.
  22.  */
  23.  
  24. #include "sysgads.h"
  25.  
  26. #define GRAN_LEFTEDGE 20
  27. #define GRAN_TOPEDGE  20
  28. #define GRAN_WIDTH  400
  29. #define GRAN_HEIGHT 150
  30.  
  31. struct NewWindow graniteWindow =
  32.     {
  33.         GRAN_LEFTEDGE,
  34.         GRAN_TOPEDGE,
  35.         GRAN_WIDTH,
  36.         GRAN_HEIGHT,
  37.         0,1,         /* Plain vanilla DetailPen and BlockPen.       */
  38.         CLOSEWINDOW, /* Tell program when close gadget has been hit */
  39.         WINDOWCLOSE | SMART_REFRESH | ACTIVATE | WINDOWDRAG |
  40.         WINDOWDEPTH | WINDOWSIZING | NOCAREREFRESH,
  41.         NULL,             /* Pointer to the first gadget -- */
  42.                           /*   may be initialized later.    */
  43.         NULL,             /* No checkmark.   */
  44.         "graniteWindow",  /* Window title.   */
  45.         NULL,             /* Attach a screen later.  */
  46.         NULL,             /* No bitmap.          */
  47.         SYSGADSWIDTH,     /* Minimum width.      */
  48.         SYSGADSHEIGHT,    /* Minimum height.     */
  49.         0xFFFF,           /* Maximum width.      */
  50.         0xFFFF,           /* Maximum height.     */
  51.         CUSTOMSCREEN      /* A screen of our own. */
  52.     };
  53.