2 * blenlib/DNA_view2d_types.h (mar-2001 nzc)
6 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version. The Blender
12 * Foundation also sells licenses for use in proprietary software under
13 * the Blender License. See http://www.blender.org/BL/ for information
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.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software Foundation,
23 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
26 * All rights reserved.
28 * The Original Code is: all of this file.
30 * Contributor(s): none yet.
32 * ***** END GPL/BL DUAL LICENSE BLOCK *****
34 #ifndef DNA_VIEW2D_TYPES_H
35 #define DNA_VIEW2D_TYPES_H
37 #include "DNA_vec_types.h"
39 typedef struct View2D {
43 float minzoom, maxzoom;
44 short scroll, keeptot;
45 short keepaspect, keepzoom;
46 short oldwinx, oldwiny;
50 #define V2D_KEEPZOOM 0x0001
51 #define V2D_LOCKZOOM_X 0x0100
52 #define V2D_LOCKZOOM_Y 0x0200