1 /* Copyright (c) 2008, 2009 2 * Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de) 3 * Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de) 4 * Micah Cowan (micah@cowan.name) 5 * Sadrul Habib Chowdhury (sadrul@users.sourceforge.net) 6 * Copyright (c) 1993-2002, 2003, 2005, 2006, 2007 7 * Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de) 8 * Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de) 9 * Copyright (c) 1987 Oliver Laumann 10 * 11 * This program is free software; you can redistribute it and/or modify 12 * it under the terms of the GNU General Public License as published by 13 * the Free Software Foundation; either version 3, or (at your option) 14 * any later version. 15 * 16 * This program is distributed in the hope that it will be useful, 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 * GNU General Public License for more details. 20 * 21 * You should have received a copy of the GNU General Public License 22 * along with this program (see the file COPYING); if not, see 23 * https://www.gnu.org/licenses/, or contact Free Software Foundation, Inc., 24 * 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA 25 * 26 **************************************************************** 27 * $Id$ GNU 28 */ 29 30 #ifndef SCREEN_VIEWPORT_H 31 #define SCREEN_VIEWPORT_H 32 33 #include "canvas.h" 34 35 struct viewport 36 { 37 struct viewport *v_next; /* next vp on canvas */ 38 struct canvas *v_canvas; /* back pointer to canvas */ 39 int v_xoff; /* layer x offset on display */ 40 int v_yoff; /* layer y offset on display */ 41 int v_xs; /* vp upper left */ 42 int v_xe; /* vp upper right */ 43 int v_ys; /* vp lower left */ 44 int v_ye; /* vp lower right */ 45 }; 46 47 extern int RethinkDisplayViewports __P((void)); 48 extern void RethinkViewportOffsets __P((struct canvas *)); 49 50 #endif /* SCREEN_VIEWPORT_H */ 51 52