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

31 lines
541 B
C
Raw Normal View History

2020-08-04 13:15:02 +08:00
#ifndef __TREEVIEW_SCENE_H__
#define __TREEVIEW_SCENE_H__
#include "cocos2d.h"
#include "DemoScene.h"
USING_NS_FGUI;
class TreeViewScene : public DemoScene
{
public:
TreeViewScene();
~TreeViewScene();
// implement the "static create()" method manually
CREATE_FUNC(TreeViewScene);
protected:
virtual void continueInit() override;
private:
void onClickNode(EventContext* context);
void renderTreeNode(GTreeNode* node, GComponent* obj);
GComponent* _view;
GTree* _tree1;
GTree* _tree2;
};
#endif