2011-07-29 15:57:27 +08:00
|
|
|
#ifndef _FONT_TEST_H_
|
|
|
|
#define _FONT_TEST_H_
|
2012-04-19 14:35:52 +08:00
|
|
|
|
|
|
|
#include "cocos2d.h"
|
|
|
|
#include "../testBasic.h"
|
2013-06-07 08:12:28 +08:00
|
|
|
#include "../BaseTest.h"
|
2012-04-19 14:35:52 +08:00
|
|
|
|
|
|
|
class FontTestScene : public TestScene
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void runThisTest();
|
|
|
|
};
|
|
|
|
|
2013-06-07 08:12:28 +08:00
|
|
|
class FontTest : public BaseTest
|
2011-07-29 15:57:27 +08:00
|
|
|
{
|
|
|
|
public:
|
2012-04-19 14:35:52 +08:00
|
|
|
FontTest();
|
|
|
|
void showFont(const char *pFont);
|
2011-07-29 15:57:27 +08:00
|
|
|
|
2014-02-20 10:53:49 +08:00
|
|
|
void restartCallback(Ref* sender);
|
|
|
|
void nextCallback(Ref* sender);
|
|
|
|
void backCallback(Ref* sender);
|
2013-12-19 05:52:10 +08:00
|
|
|
virtual std::string title() const override;
|
2011-07-29 15:57:27 +08:00
|
|
|
|
2012-08-27 16:11:07 +08:00
|
|
|
CREATE_FUNC(FontTest);
|
2011-07-29 15:57:27 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _FONT_TEST_H_
|