mgrect.h
来自「monqueror一个很具有参考价值的源玛」· C头文件 代码 · 共 41 行
H
41 行
#ifndef _MGRECT_H_#define _MGRECT_H_class MGRect{public: MGRect(); ~MGRect(); MGRect( int left, int top, int width, int height ); MGRect( const MGRect& r ); int left() const; int top() const; int right() const; int bottom() const; int x() const; int y() const; int width() const; int height() const; MGSize size() const; void setWidth( int w ); void setHeight( int h ); void setLeft( int ); void setRight( int ); void setTop( int ); void setBottom( int ); bool isValid() const;protected: int x1; int y1; int x2; int y2;};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?