axmol/tests/Classes/VisibleRect.h

27 lines
503 B
C
Raw Normal View History

2013-09-20 22:23:13 +08:00
#ifndef __VISIBLERECT_H__
#define __VISIBLERECT_H__
#include "cocos2d.h"
USING_NS_CC;
class VisibleRect
{
public:
static Rect getVisibleRect();
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();
private:
static void lazyInit();
static Rect s_visibleRect;
};
#endif /* __VISIBLERECT_H__ */