2012-10-23 17:48:50 +08:00
|
|
|
#ifndef __VISIBLERECT_H__
|
|
|
|
#define __VISIBLERECT_H__
|
|
|
|
|
|
|
|
#include "cocos2d.h"
|
|
|
|
USING_NS_CC;
|
|
|
|
|
|
|
|
class VisibleRect
|
|
|
|
{
|
|
|
|
public:
|
2013-06-20 14:17:10 +08:00
|
|
|
static Rect getVisibleRect();
|
2012-10-23 17:48:50 +08:00
|
|
|
|
2013-06-20 14:17:10 +08:00
|
|
|
static Point left();
|
|
|
|
static Point right();
|
|
|
|
static Point top();
|
|
|
|
static Point bottom();
|
|
|
|
static Point center();
|
|
|
|
static Point leftTop();
|
|
|
|
static Point rightTop();
|
|
|
|
static Point leftBottom();
|
|
|
|
static Point rightBottom();
|
2012-10-23 17:48:50 +08:00
|
|
|
private:
|
|
|
|
static void lazyInit();
|
2013-06-20 14:17:10 +08:00
|
|
|
static Rect s_visibleRect;
|
2012-10-23 17:48:50 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __VISIBLERECT_H__ */
|