|
Blender
V2.59
|
00001 /* 00002 * $Id: wm_window.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_WINDOW_H 00035 #define WM_WINDOW_H 00036 00037 struct bScreen; 00038 struct wmOperator; 00039 00040 /* *************** internal api ************** */ 00041 void wm_ghost_init (bContext *C); 00042 void wm_ghost_exit(void); 00043 00044 void wm_get_screensize(int *width_r, int *height_r); 00045 00046 wmWindow *wm_window_new (bContext *C); 00047 void wm_window_free (bContext *C, wmWindowManager *wm, wmWindow *win); 00048 void wm_window_close (bContext *C, wmWindowManager *wm, wmWindow *win); 00049 00050 void wm_window_title (wmWindowManager *wm, wmWindow *win); 00051 void wm_window_add_ghostwindows (bContext *C, wmWindowManager *wm); 00052 void wm_window_process_events (const bContext *C); 00053 void wm_window_process_events_nosleep(void); 00054 00055 void wm_window_make_drawable(bContext *C, wmWindow *win); 00056 00057 void wm_window_raise (wmWindow *win); 00058 void wm_window_lower (wmWindow *win); 00059 void wm_window_set_size (wmWindow *win, int width, int height); 00060 void wm_window_get_size (wmWindow *win, int *width_r, int *height_r); 00061 void wm_window_get_size_ghost (wmWindow *win, int *width_r, int *height_r); 00062 void wm_window_get_position (wmWindow *win, int *posx_r, int *posy_r); 00063 void wm_window_swap_buffers (wmWindow *win); 00064 00065 void wm_get_cursor_position (wmWindow *win, int *x, int *y); 00066 00067 wmWindow *wm_window_copy (bContext *C, wmWindow *winorig); 00068 00069 void wm_window_testbreak (void); 00070 00071 /* *************** window operators ************** */ 00072 int wm_window_duplicate_exec(bContext *C, struct wmOperator *op); 00073 int wm_window_fullscreen_toggle_exec(bContext *C, struct wmOperator *op); 00074 00075 #endif /* WM_WINDOW_H */ 00076