home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / tools / developer-tools / c-tools / c_examples / pointer / pointer.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-19  |  1.1 KB  |  52 lines

  1. //////////////////////////////////////////////////////////////////////////////
  2. // pointer.cpp
  3. //
  4. // Deryk Robosson
  5. // February 29, 1996
  6. //////////////////////////////////////////////////////////////////////////////
  7.  
  8. //////////////////////////////////////////////////////////////////////////////
  9. // INCLUDES
  10. #include "aframe:include/pointer.hpp"
  11.  
  12. //////////////////////////////////////////////////////////////////////////////
  13. //
  14.  
  15. AFPointer::AFPointer()
  16. {
  17. }
  18.  
  19. AFPointer::~AFPointer()
  20. {
  21.   DestroyObject();
  22. }
  23.  
  24. void AFPointer::DestroyObject()
  25. {
  26. }
  27.  
  28. //void AFPointer::Create()
  29. //{
  30. //}
  31.  
  32. void AFPointer::SetPointer(AFWindow* window, UWORD pointer[], long height, long width,
  33.                            long xoffset, long yoffset)
  34. {
  35.   m_pPointer=pointer;
  36.   m_pPtrHeight=height;
  37.   m_pPtrWidth=width;
  38.   m_pXOffset=xoffset;
  39.   m_pYOffset=yoffset;
  40.   ::SetPointer(window->m_pWindow,pointer,height,width,xoffset,yoffset);
  41. }
  42.  
  43. void AFPointer::SetWindowPointer(AFWindow* window, struct TagItem* taglist)
  44. {
  45.   ::SetWindowPointerA(window->m_pWindow,taglist);
  46. }
  47.  
  48. void AFPointer::ClearPointer(AFWindow* window)
  49. {
  50.   ::ClearPointer(window->m_pWindow);
  51. }
  52.