home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Developer University / DUProjects / Data / Sources / Pizza.cpp < prev    next >
Encoding:
Text File  |  1996-08-16  |  983 b   |  43 lines  |  [TEXT/CWIE]

  1. //    Copyright © 1995-96 Apple Computer, Inc. All rights reserved.
  2. //    Release Version:    $ ODF 1 $
  3.  
  4. //==========================================================================
  5. #ifndef PIZZA_H
  6. #include "Pizza.h"                //  CPizza
  7. #endif
  8.  
  9. #ifndef FWBARRAY_H
  10. #include "FWBArray.h"
  11. #endif
  12.  
  13. // ----- OSLayer Includes -----
  14. #ifndef FWOVLSHP_H
  15. #include "FWOvlShp.h"            // FW_COvalShape
  16. #endif
  17.  
  18. //==========================================================================
  19. CPizza::CPizza(FW_CRect bounds)
  20.  :    fBounds(bounds)
  21. {
  22. }
  23.  
  24. //--------------------------------------------------------------------------
  25. CPizza::~CPizza()
  26. {
  27. }
  28.  
  29. //--------------------------------------------------------------------------
  30. void    
  31. CPizza::Draw(FW_CGraphicContext& gc)
  32. {
  33.     FW_COvalShape::RenderOval(gc, fBounds, FW_kFill, FW_kRGBYellow);
  34.     FW_COvalShape::RenderOval(gc, fBounds, FW_kFrame);
  35. }
  36.  
  37. //--------------------------------------------------------------------------
  38. FW_CRect    
  39. CPizza::GetBounds()
  40. {
  41.     return fBounds;
  42. }
  43.