axmol/tests/fairygui-tests/Classes/PullToRefreshScene.h

31 lines
604 B
C
Raw Normal View History

2020-08-04 13:15:02 +08:00
#ifndef __PULLTOREFRESH_SCENE_H__
#define __PULLTOREFRESH_SCENE_H__
#include "cocos2d.h"
#include "DemoScene.h"
USING_NS_FGUI;
class PullToRefreshScene : public DemoScene
{
public:
// implement the "static create()" method manually
CREATE_FUNC(PullToRefreshScene);
protected:
virtual void continueInit() override;
private:
void onPullDownToRefresh(EventContext*);
void onPullUpToRefresh(EventContext*);
void renderListItem1(int index, GObject* obj);
void renderListItem2(int index, GObject* obj);
GComponent* _view;
GList* _list1;
GList* _list2;
};
#endif