2014-03-06 20:52:29 +08:00
|
|
|
|
|
|
|
|
|
|
|
#ifndef __TestCpp__UIRichTextTest__
|
|
|
|
#define __TestCpp__UIRichTextTest__
|
|
|
|
|
|
|
|
#include "../UIScene.h"
|
|
|
|
|
2015-04-03 14:31:03 +08:00
|
|
|
DEFINE_TEST_SUITE(UIRichTextTests);
|
|
|
|
|
2014-03-06 20:52:29 +08:00
|
|
|
class UIRichTextTest : public UIScene
|
|
|
|
{
|
|
|
|
public:
|
2015-04-03 14:31:03 +08:00
|
|
|
CREATE_FUNC(UIRichTextTest);
|
|
|
|
|
2014-03-06 20:52:29 +08:00
|
|
|
UIRichTextTest();
|
|
|
|
~UIRichTextTest();
|
2015-04-03 14:31:03 +08:00
|
|
|
|
|
|
|
virtual bool init() override;
|
2015-04-09 08:37:30 +08:00
|
|
|
void touchEvent(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type);
|
2014-03-06 20:52:29 +08:00
|
|
|
|
|
|
|
protected:
|
2015-04-09 08:37:30 +08:00
|
|
|
cocos2d::ui::RichText* _richText;
|
2014-03-06 20:52:29 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* defined(__TestCpp__UIRichTextTest__) */
|