diff options
author | Ton Roosendaal <ton@blender.org> | 2008-01-01 18:53:38 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2008-01-01 18:53:38 +0300 |
commit | 2df4ef711a6dcb2c8874861a181bbc31d0e37f52 (patch) | |
tree | b3d2fc4fa922932d8820a0e98e6890377fc8ec8c /source/blender/windowmanager/wm_subwindow.h | |
parent | 881fd0cb3a144bb68139ca120068ba6b5a183efc (diff) |
More work on restoring Blender;
- brining back subwindow management
- removing more bad level stuff
Diffstat (limited to 'source/blender/windowmanager/wm_subwindow.h')
-rw-r--r-- | source/blender/windowmanager/wm_subwindow.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/source/blender/windowmanager/wm_subwindow.h b/source/blender/windowmanager/wm_subwindow.h new file mode 100644 index 00000000000..93079deb633 --- /dev/null +++ b/source/blender/windowmanager/wm_subwindow.h @@ -0,0 +1,51 @@ +/** + * $Id: wm_window.h + * + * ***** BEGIN GPL LICENSE BLOCK ***** + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * The Original Code is Copyright (C) 2007 Blender Foundation. + * All rights reserved. + * + * + * Contributor(s): Blender Foundation + * + * ***** END GPL LICENSE BLOCK ***** + */ + +#ifndef WM_SUBWINDOW_H +#define WM_SUBWINDOW_H + + +/* *************** internal api ************** */ +#define WM_MAXSUBWIN 256 + +void wm_subwindows_free(wmWindow *win); + +int wm_subwindow_open(wmWindow *win, rcti *winrct); +void wm_subwindow_set(wmWindow *win, int swinid); /* set drawable */ +void wm_subwindow_close(wmWindow *win, int swinid); +int wm_subwindow_get(wmWindow *win); /* returns id */ + +void wm_subwindow_position(wmWindow *win, int swinid, rcti *winrct); + + +void wm_subwindow_getsize(wmWindow *win, int *x, int *y) ; +void wm_subwindow_getorigin(wmWindow *win, int *x, int *y); + + +#endif /* WM_SUBWINDOW_H */ + |