axmol/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/GUIEditorTest.h

31 lines
686 B
C++

#ifndef __TestCpp__GUIEditorTest__
#define __TestCpp__GUIEditorTest__
#include "../../testBasic.h"
class GUIEditorMainLayer : public Layer
{
public:
virtual void onEnter() override;
void menuCallback(Ref* pSender);
void onTouchesBegan(const std::vector<Touch*>& touches, Event *event) override;
void onTouchesMoved(const std::vector<Touch*>& touches, Event *event) override;
private:
Vec2 _beginPos;
Menu* _itemMenu;
int _testcount;
};
class GUIEditorTestScene : public TestScene
{
public:
virtual void onEnter() override;
virtual void runThisTest();
void BackCallback(Ref* pSender);
};
#endif /* defined(__TestCpp__GUIEditorTest__) */