2013-09-20 22:23:13 +08:00
|
|
|
#ifndef __VISIBLERECT_H__
|
|
|
|
#define __VISIBLERECT_H__
|
|
|
|
|
|
|
|
#include "cocos2d.h"
|
|
|
|
|
|
|
|
class VisibleRect
|
|
|
|
{
|
|
|
|
public:
|
2014-03-26 01:37:35 +08:00
|
|
|
static cocos2d::Rect getVisibleRect();
|
2013-09-20 22:23:13 +08:00
|
|
|
|
2014-05-15 01:07:09 +08:00
|
|
|
static cocos2d::Vec2 left();
|
|
|
|
static cocos2d::Vec2 right();
|
|
|
|
static cocos2d::Vec2 top();
|
|
|
|
static cocos2d::Vec2 bottom();
|
|
|
|
static cocos2d::Vec2 center();
|
|
|
|
static cocos2d::Vec2 leftTop();
|
|
|
|
static cocos2d::Vec2 rightTop();
|
|
|
|
static cocos2d::Vec2 leftBottom();
|
|
|
|
static cocos2d::Vec2 rightBottom();
|
2013-09-20 22:23:13 +08:00
|
|
|
private:
|
|
|
|
static void lazyInit();
|
2014-03-26 01:37:35 +08:00
|
|
|
static cocos2d::Rect s_visibleRect;
|
2013-09-20 22:23:13 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __VISIBLERECT_H__ */
|