2
0

PolyUIImageButton.h 595 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * PolyUIImageButton.h
  3. * Poly
  4. *
  5. * Created by Ivan Safrin on 7/29/08.
  6. * Copyright 2008 __MyCompanyName__. All rights reserved.
  7. *
  8. */
  9. // @package UI
  10. #pragma once
  11. #include "PolyGlobals.h"
  12. #include "PolyScreenImage.h"
  13. #include "PolyScreenShape.h"
  14. #include "PolyScreenEntity.h"
  15. #include "PolyUIEvent.h"
  16. namespace Polycode {
  17. class _PolyExport UIImageButton : public ScreenEntity {
  18. public:
  19. UIImageButton(String imageName);
  20. ~UIImageButton();
  21. void handleEvent(Event *event);
  22. private:
  23. ScreenShape *buttonRect;
  24. ScreenImage *buttonImage;
  25. bool pressedDown;
  26. };
  27. }