rect.cpp

来自「CS架构的多平台的GUI系统」· C++ 代码 · 共 67 行

CPP
67
字号
/***************************************************************************    begin                : Tue Sep 21 2004    copyright            : (C) 2004 - 2005 by Alper Akcan    email                : distchx@yahoo.com ***************************************************************************//*************************************************************************** *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU Lesser General Public License as        * *   published by the Free Software Foundation; either version 2.1 of the  * *   License, or (at your option) any later version.                       * *                                                                         * ***************************************************************************/#include "../lib/xynth_.h"#include "widget.h"void SSize::sizeSet (int w, int h){	sizeW = w;	sizeH = h;}SSize::SSize (int w, int h){	sizeSet(w, h);}SSize::~SSize (void){}void SRect::rectSet (int x, int y, int w, int h){	rectX = x;	rectY = y;	rectW = w;	rectH = h;}SRect::SRect (int x, int y, int w, int h){	rectSet(x, y, w, h);}SRect::SRect (const SRect &copy){	*this = copy;}SRect::~SRect (void){}void SRect::operator = (const SRect &copy){	if (this == &copy) {		return;	}	rectX = copy.rectX;	rectY = copy.rectY;	rectW = copy.rectW;	rectH = copy.rectH;}

⌨️ 快捷键说明

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