📄 mgrect.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -