2 * ***** BEGIN GPL LICENSE BLOCK *****
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software Foundation,
16 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 * The Original Code is Copyright (C) 2007 Blender Foundation.
19 * All rights reserved.
22 * Contributor(s): Blender Foundation
24 * ***** END GPL LICENSE BLOCK *****
27 /** \file blender/windowmanager/wm_subwindow.h
32 #ifndef __WM_SUBWINDOW_H__
33 #define __WM_SUBWINDOW_H__
36 /* *************** internal api ************** */
37 #define WM_MAXSUBWIN 256
39 void wm_subwindows_free(wmWindow *win);
41 int wm_subwindow_open(wmWindow *win, rcti *winrct);
42 void wm_subwindow_close(wmWindow *win, int swinid);
43 int wm_subwindow_get(wmWindow *win); /* returns id */
45 void wm_subwindow_position(wmWindow *win, int swinid, rcti *winrct);
47 void wm_subwindow_getsize(wmWindow *win, int swinid, int *x, int *y);
48 void wm_subwindow_getorigin(wmWindow *win, int swinid, int *x, int *y);
49 void wm_subwindow_getmatrix(wmWindow *win, int swinid, float mat[][4]);
51 unsigned int index_to_framebuffer(int index);
53 #endif /* __WM_SUBWINDOW_H__ */