myCirc.h
资源名称:Shapes.zip [点击查看]
上传用户:wenshuihe
上传日期:2007-01-14
资源大小:10k
文件大小:1k
源码类别:
BREW编程
开发平台:
Visual C++
- // Circ.h: interface for the CCirc class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(_MY_CIRC_H)
- #define _MY_CIRC_H
- #include "myShape.h"
- #include "myPoint.h" // Added by ClassView
- class CCirc : public CShape
- {
- public:
- void operator delete(void *p);
- void* operator new(size_t sz);
- void setr(uint16 r);
- void setCenter(int16 x, int16 y);
- void setCenter(CPoint c);
- CCirc(uint16 r, CPoint c, RGBVAL col);
- boolean draw(IGraphics *pg);
- uint16 getRad() const;
- CPoint* getCenter();
- CCirc();
- virtual ~CCirc();
- private:
- uint16 m_rad;
- CPoint m_center;
- };
- #endif // !defined(_MY_CIRC_H)