home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / hypercar / mactool / thinkcgu.sit / picture ƒ / frame.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-02-17  |  625 b   |  29 lines

  1. /*
  2. *    FILE:        frame.h
  3. *    AUTHOR:        R. Gonzalez
  4. *    CREATED:    October 3, 1990
  5. *
  6. *    Defines window frame (center, width, and height) for picture
  7. *    application.  Useful for 2D mapping.
  8. */
  9.  
  10. # ifndef    frame_h
  11. # define    frame_h
  12.  
  13. # include    "class.h"
  14.  
  15. /******************************************************************
  16. *   general-purpose frame
  17. ******************************************************************/
  18. struct    Frame:Generic_Class
  19. {
  20.     double            x;        /* public */
  21.     double            y;        /* public */
  22.     double            width;    /* public */
  23.     double            height;    /* public */
  24.         
  25.     boolean            init(void);
  26.     virtual void    set(double,double,double,double);
  27. };
  28.  
  29. # endif