| 25 | #include "2d/ActionTween.h" |
| 26 | |
| 27 | class BoomScrollLayer : public ax::Layer, public ax::ActionTweenDelegate { |
| 28 | private: |
| 29 | virtual void updateTweenAction(float value, std::string_view key) override {}; |
| 30 | ax::Layer* _internalLayer; |
| 31 | |
| 32 | float _dragMovement; |
| 33 | |
| 34 | public: |
| 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 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected