MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / BoomScrollLayer

Class BoomScrollLayer

Source/BoomScrollLayer.h:27–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25#include "2d/ActionTween.h"
26
27class BoomScrollLayer : public ax::Layer, public ax::ActionTweenDelegate {
28private:
29 virtual void updateTweenAction(float value, std::string_view key) override {};
30 ax::Layer* _internalLayer;
31
32 float _dragMovement;
33
34public:
35
36 int _currentPage, _leftPage, _rightPage;
37 int _totalPages;
38 std::vector<ax::Layer*> _layers;
39
40 bool init(std::vector<ax::Layer*>, int);
41 static BoomScrollLayer* create(std::vector<ax::Layer*> layers, int currentPage);
42 void selectPage(int current);
43 void changePageRight();
44 void changePageLeft();
45 // bool onTouchBegan(ax::Touch *touch, ax::Event *event);
46 // void onTouchEnded(ax::Touch *touch, ax::Event *event);
47 // void onTouchMoved(ax::Touch *touch, ax::Event *event);
48 void onExit() override;
49};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected