本文来自http://blog.csdn.net/runaying ,引用必须注明出处!
cocos2d-X 节点(UIScrollInterface.h)API
温馨提醒:为了大家能更好学习,强烈推荐大家看看本人的这篇博客 Cocos2d-X权威指南笔记
只是定义了一些受保护的 接口
/////cocos2d-x-3.0alpha0/extensions/CocoStudio/GUI/UIWidgets/ScrollWidget // 只是定义了一些受保护的 接口 #ifndef __UISCROLLDELEGATE_H__ #define __UISCROLLDELEGATE_H__ #include "../../BaseClasses/UIWidget.h" NS_CC_EXT_BEGIN class UIScrollInterface { protected: virtual void handlePressLogic(const Point &touchPoint) = 0; virtual void handleMoveLogic(const Point &touchPoint) = 0; virtual void handleReleaseLogic(const Point &touchPoint) = 0; virtual void interceptTouchEvent(int handleState, UIWidget* sender, const Point &touchPoint) = 0; // virtual bool isInScrollDegreeRange(UIWidget* widget) = 0; }; NS_CC_EXT_END #endif /* defined(__UIScrollDelegate__) */