4 * ***** BEGIN GPL LICENSE BLOCK *****
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 * The Original Code is Copyright (C) 2007 Blender Foundation.
21 * All rights reserved.
24 * Contributor(s): Blender Foundation
26 * ***** END GPL LICENSE BLOCK *****
29 #ifndef WM_SUBWINDOW_H
30 #define WM_SUBWINDOW_H
33 /* *************** internal api ************** */
34 #define WM_MAXSUBWIN 256
36 void wm_subwindows_free(wmWindow *win);
38 int wm_subwindow_open(wmWindow *win, rcti *winrct);
39 void wm_subwindow_close(wmWindow *win, int swinid);
40 int wm_subwindow_get(wmWindow *win); /* returns id */
42 void wm_subwindow_position(wmWindow *win, int swinid, rcti *winrct);
44 void wm_subwindow_getsize(wmWindow *win, int swinid, int *x, int *y);
45 void wm_subwindow_getorigin(wmWindow *win, int swinid, int *x, int *y);
46 void wm_subwindow_getmatrix(wmWindow *win, int swinid, float mat[][4]);
49 #endif /* WM_SUBWINDOW_H */