home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / source / bento / headers / canvas.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-02  |  2.6 KB  |  117 lines

  1. /*
  2.     File:        Canvas.h
  3.  
  4.     Contains:    Definitions of class XMPAbsCanvas
  5.  
  6.     Written by:    Joshua Susser & Sepp Friedrich
  7.  
  8.     Copyright:    ⌐ 1993 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.             
  12.          <8>      2/7/94    JA        The Makeover Continues!
  13.          <7>      2/3/94    JA        Tiger Team Makeover!
  14.          <6>     1/24/94    SS        Checkin for Joshua (see below)
  15.          <11+>     1/13/94    JBS        update region support, new getters
  16.          <11>      7/12/93    RCR        Help it to link. Added = 0
  17.          <10>      7/12/93    RCR        Help it to compile
  18.          <3>      7/6/93    JBS        separate into abstract/concrete
  19.          <2>     4/30/93    JBS        8.3 file names
  20.          <1>     4/14/93    JBS        first checked in
  21. */
  22.  
  23. #ifndef _CANVAS_
  24. #define _CANVAS_
  25.  
  26. #ifndef _XMPTYPES_
  27. #include "XMPTypes.h"
  28. #endif
  29.  
  30. #ifndef _XMPOBJ_
  31. #include "XMPObj.h"            // base class
  32. #endif
  33.  
  34. //==============================================================================
  35. // Classes defined in this interface
  36. //==============================================================================
  37.  
  38. class XMPAbsCanvas;
  39.  
  40. //==============================================================================
  41. // Classes used in this interface
  42. //==============================================================================
  43.  
  44. class XMPFacet;
  45. class XMPPart;
  46. class XMPShape;
  47.  
  48. //==============================================================================
  49. // XMPCanvas
  50. //==============================================================================
  51.  
  52. class XMPAbsCanvas : public XMPObject
  53. {
  54.  
  55. public:
  56.  
  57.     //---------------------------------
  58.     // overrides
  59.  
  60. //    XMPVMethod XMPSize Purge(XMPSize size);        // override from XMPObject
  61.  
  62.     //---------------------------------
  63.     // constructor & destructor
  64.  
  65.     XMPAbsCanvas() {};
  66.  
  67.     XMPVMethod ~XMPAbsCanvas() {};
  68.     
  69.     //---------------------------------
  70.     // getters
  71.  
  72.     XMPVMethod XMPGraphicsSystem GetGraphicsSystem()
  73.         = 0;
  74.     
  75.     XMPVMethod XMPPlatformCanvas GetPlatformCanvas()
  76.         = 0;
  77.     
  78.     XMPVMethod XMPPart* GetOwner()
  79.         = 0;
  80.     XMPVMethod void SetOwner(XMPPart* owner)
  81.         = 0;
  82.  
  83.     XMPVMethod XMPFacet* GetFacet()
  84.         = 0;
  85.     XMPVMethod void SetFacet(XMPFacet* facet)
  86.         = 0;
  87.  
  88.     XMPVMethod XMPBoolean IsDynamic()
  89.         = 0;
  90.     
  91.     XMPVMethod XMPBoolean IsOffscreen()
  92.          = 0;
  93.  
  94.     //---------------------------------
  95.     // update region
  96.  
  97.     XMPMethod XMPShape* GetUpdateShape()
  98.          = 0;
  99.  
  100.     XMPMethod void ResetUpdateShape()
  101.          = 0;
  102.  
  103.     XMPMethod void Invalidate(XMPShape* shape)
  104.          = 0;
  105.  
  106.     XMPMethod void Validate(XMPShape* shape)
  107.          = 0;
  108. };
  109.  
  110. #if PLATFORM_MACINTOSH
  111. #ifndef _CANVASM_
  112. #include "CanvasM.h"
  113. #endif
  114. #endif
  115.  
  116. #endif // _CANVAS_
  117.