mgrect.cpp

来自「monqueror一个很具有参考价值的源玛」· C++ 代码 · 共 29 行

CPP
29
字号
#include "render_interface.h"#include "mgrect.h"MGRect::MGRect(){	x1 = 0; y1 = 0; x2 = 0; y2 = 0;}MGRect::~MGRect(){}MGRect::MGRect( int left, int top, int width, int height ){	x1 = left;	y1 = top;	x2 = x1+width-1;	y2 = y1+height-1;}MGRect::MGRect( const MGRect& r ){	x1 = r.x1;	y1 = r.y1;	x2 = r.x2;	y2 = r.y2;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?