Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/external/source/vncdll/winvnc/RectList.cpp
Views: 11779
// Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved.1//2// This file is part of the VNC system.3//4// The VNC system is free software; you can redistribute it and/or modify5// it under the terms of the GNU General Public License as published by6// the Free Software Foundation; either version 2 of the License, or7// (at your option) any later version.8//9// This program is distributed in the hope that it will be useful,10// but WITHOUT ANY WARRANTY; without even the implied warranty of11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the12// GNU General Public License for more details.13//14// You should have received a copy of the GNU General Public License15// along with this program; if not, write to the Free Software16// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,17// USA.18//19// TightVNC distribution homepage on the Web: http://www.tightvnc.com/20//21// If the source code for the VNC system is not available from the place22// whence you received this file, check http://www.uk.research.att.com/vnc or contact23// the authors on [email protected] for information on obtaining it.242526// RectList implementation2728#include "RectList.h"2930bool31operator <(const RECT _X, const RECT _Y)32{33return _X.top < _Y.top;34}3536bool37operator >(const RECT _X, const RECT _Y)38{39return _X.top > _Y.top;40}4142bool43operator ==(const RECT &_X, const RECT &_Y)44{45return (_X.left == _Y.left) &&46(_X.right == _Y.right) &&47(_X.top == _Y.top) &&48(_X.bottom == _Y.bottom);49}5051bool52operator !=(const RECT &_X, const RECT &_Y)53{54return (_X.left != _Y.left) ||55(_X.right != _Y.right) ||56(_X.top != _Y.top) ||57(_X.bottom != _Y.bottom);58}596061