|
Blender
V2.59
|
00001 /* 00002 * $Id: wm_subwindow.h 35179 2011-02-25 14:04:21Z jesterking $ 00003 * 00004 * ***** BEGIN GPL LICENSE BLOCK ***** 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License 00008 * as published by the Free Software Foundation; either version 2 00009 * of the License, or (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software Foundation, 00018 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00019 * 00020 * The Original Code is Copyright (C) 2007 Blender Foundation. 00021 * All rights reserved. 00022 * 00023 * 00024 * Contributor(s): Blender Foundation 00025 * 00026 * ***** END GPL LICENSE BLOCK ***** 00027 */ 00028 00034 #ifndef WM_SUBWINDOW_H 00035 #define WM_SUBWINDOW_H 00036 00037 00038 /* *************** internal api ************** */ 00039 #define WM_MAXSUBWIN 256 00040 00041 void wm_subwindows_free(wmWindow *win); 00042 00043 int wm_subwindow_open(wmWindow *win, rcti *winrct); 00044 void wm_subwindow_close(wmWindow *win, int swinid); 00045 int wm_subwindow_get(wmWindow *win); /* returns id */ 00046 00047 void wm_subwindow_position(wmWindow *win, int swinid, rcti *winrct); 00048 00049 void wm_subwindow_getsize(wmWindow *win, int swinid, int *x, int *y); 00050 void wm_subwindow_getorigin(wmWindow *win, int swinid, int *x, int *y); 00051 void wm_subwindow_getmatrix(wmWindow *win, int swinid, float mat[][4]); 00052 00053 unsigned int index_to_framebuffer(int index); 00054 00055 #endif /* WM_SUBWINDOW_H */ 00056