|
|
@@ -1,7 +1,7 @@
|
|
|
#ifndef IMAGECONTROL_H_
|
|
|
#define IMAGECONTROL_H_
|
|
|
|
|
|
-#include "Control.h"
|
|
|
+#include "Button.h"
|
|
|
#include "Theme.h"
|
|
|
#include "Image.h"
|
|
|
#include "SpriteBatch.h"
|
|
|
@@ -33,7 +33,7 @@ namespace gameplay
|
|
|
}
|
|
|
@endverbatim
|
|
|
*/
|
|
|
-class ImageControl : public Control
|
|
|
+class ImageControl : public Button
|
|
|
{
|
|
|
friend class Container;
|
|
|
|
|
|
@@ -107,6 +107,8 @@ public:
|
|
|
*/
|
|
|
const Rectangle& getRegionDst() const;
|
|
|
|
|
|
+ const char* getType() const;
|
|
|
+
|
|
|
protected:
|
|
|
|
|
|
ImageControl();
|