1 /****************************************************************************** 2 * recordMyDesktop * 3 ******************************************************************************* 4 * * 5 * Copyright (C) 2006,2007,2008 John Varouhakis * 6 * * 7 * * 8 * This program is free software; you can redistribute it and/or modify * 9 * it under the terms of the GNU General Public License as published by * 10 * the Free Software Foundation; either version 2 of the License, or * 11 * (at your option) any later version. * 12 * * 13 * This program is distributed in the hope that it will be useful, * 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 16 * GNU General Public License for more details. * 17 * * 18 * You should have received a copy of the GNU General Public License * 19 * along with this program; if not, write to the Free Software * 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * 21 * * 22 * * 23 * * 24 * For further information contact me at johnvarouhakis@gmail.com * 25 ******************************************************************************/ 26 27 #ifndef RECTINSERT_H 28 #define RECTINSERT_H 1 29 30 31 #include "rmd_types.h" 32 33 34 /** 35 * Insert a new rectangle on the list, making sure it doesn't overlap 36 * with the existing ones 37 * \param root Root entry of the list 38 * 39 * \param xrect New area to be inserted 40 * 41 * \returns Number of insertions during operation 42 * 43 * \note This function is reentrant and recursive. The number 44 * of insertions takes this into account. 45 */ 46 int RectInsert(RectArea **root, XRectangle *xrect); 47 48 /** 49 * Clean up a list of areas marked for update. 50 * \param root Root entry of the list 51 */ 52 void ClearList(RectArea **root); 53 54 55 #endif 56