home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / CD-ROM Tools / CDPlay / Include / ImageButton.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-27  |  1.2 KB  |  43 lines

  1. //////////////////////////////////////////////////////////////////////////////
  2. // ImageButton.hpp
  3. //
  4. // Jeffry A Worth
  5. // Deryk B Robosson
  6. // December 4, 1995
  7. //////////////////////////////////////////////////////////////////////////////
  8.  
  9. #ifndef __AFIMAGEBUTTON_HPP__
  10. #define __AFIMAGEBUTTON_HPP__
  11.  
  12. //////////////////////////////////////////////////////////////////////////////
  13. // INCLUDES
  14. #include "aframe:include/gadget.hpp"
  15. #include "aframe:include/rastport.hpp"
  16.  
  17. //////////////////////////////////////////////////////////////////////////////
  18. // IButton Class
  19.  
  20. class AFImageButton : public AFGadget
  21. {
  22. public:
  23.   AFImageButton();
  24.   ~AFImageButton();
  25.  
  26.   virtual void DestroyObject();
  27.   virtual char *ObjectType() { return "AFImageButton"; };
  28.  
  29.   virtual void Create(AFWindow* pwindow, AFRect* rect, ULONG id, LPImage image, LPImage select);
  30.   virtual void Create(AFWindow* pwindow, AFRect* rect, ULONG id, LPImage image, LPImage select, LPImage disabled);
  31.   virtual void SizeToFit();
  32.  
  33.     // December 19,1995 Jeffry A Worth
  34. private:
  35.   LPImage m_pRender;
  36.   LPImage m_pSelect;
  37.   LPImage m_pDisabled;
  38.     // End Additions
  39. };
  40.  
  41. //////////////////////////////////////////////////////////////////////////////
  42. #endif // __AFIMAGEBUTTON_HPP__
  43.