home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 28 / amigaformatcd28.iso / -seriously_amiga- / programming / c / asap / drawinfo.h < prev    next >
C/C++ Source or Header  |  1998-04-23  |  1KB  |  37 lines

  1. /*****************************************************************************
  2.  *                                                                           *
  3.  * ASAP - Amiga Software Authoring Platform                                  *
  4.  *                                                                           *
  5.  * Written by Laurie Perrin                                                  *
  6.  *                                                                           *
  7.  * ADrawInfo wrapper class                                                   *
  8.  *                                                                           *
  9.  *****************************************************************************/
  10.  
  11. #ifndef ASAP_ADrawInfo_H
  12. #define ASAP_ADrawInfo_H
  13.  
  14. extern "C"
  15. {
  16.  #include <Proto/Intuition.h>
  17. }
  18.  
  19. class ADrawInfo : public DrawInfo
  20. {
  21.  public:
  22.  inline void FreeScreenDrawInfo(Screen * screen);
  23.  inline static ADrawInfo * GetScreenDrawInfo(Screen * screen);
  24. };
  25. //----------------------------------------------------------------------------
  26. void ADrawInfo::FreeScreenDrawInfo (Screen * screen)
  27. {
  28.  ::FreeScreenDrawInfo(screen, this);
  29. }
  30. //----------------------------------------------------------------------------
  31. ADrawInfo * ADrawInfo::GetScreenDrawInfo (Screen * screen)
  32. {
  33.  return (ADrawInfo *) ::GetScreenDrawInfo(screen);
  34. }
  35.  
  36. #endif
  37.