Rect rect1初始化

来源:互联网 发布:ajax防止篡改数据 编辑:程序博客网 时间:2024/06/16 08:14

Rect rect1(20,20,20,20);


Rect rect_1(rect.x - 4, rect.y - 4, 2, 2);

Rect rect_2(rect.x + rect.width/2, rect.y - 4, 2, 2);

Rect rect_3(rect.x + rect.width + 2, rect.y - 4, 2, 2);

Rect rect_4(rect.x + rect.width + 2, rect.y + rect.height/2, 2, 2);

Rect rect_5(rect.x + rect.width + 2, rect.y + rect.height + 2, 2, 2);

Rect rect_6(rect.x + rect.width / 2, rect.y + rect.height + 2, 2, 2);

Rect rect_7(rect.x - 4, rect.y + rect.height + 2, 2, 2);

Rect rect_8(rect.x - 4, rect.y + rect.height/2, 2, 2);

Rect rect_[8] = { rect_1, rect_2, rect_3, rect_4, rect_5, rect_6, rect_7, rect_8 };

原创粉丝点击