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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 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 *****
35 /* *************** internal api ************** */
36 void wm_ghost_init (bContext *C);
37 void wm_ghost_exit(void);
39 void wm_get_screensize(int *width_r, int *height_r);
41 wmWindow *wm_window_new (bContext *C);
42 void wm_window_free (bContext *C, wmWindowManager *wm, wmWindow *win);
43 void wm_window_close (bContext *C, wmWindowManager *wm, wmWindow *win);
45 void wm_window_title (wmWindowManager *wm, wmWindow *win);
46 void wm_window_add_ghostwindows (bContext *C, wmWindowManager *wm);
47 void wm_window_process_events (const bContext *C);
48 void wm_window_process_events_nosleep(void);
50 void wm_window_make_drawable(bContext *C, wmWindow *win);
52 void wm_window_raise (wmWindow *win);
53 void wm_window_lower (wmWindow *win);
54 void wm_window_set_size (wmWindow *win, int width, int height);
55 void wm_window_get_size (wmWindow *win, int *width_r, int *height_r);
56 void wm_window_get_size_ghost (wmWindow *win, int *width_r, int *height_r);
57 void wm_window_get_position (wmWindow *win, int *posx_r, int *posy_r);
58 void wm_window_swap_buffers (wmWindow *win);
60 void wm_get_cursor_position (wmWindow *win, int *x, int *y);
62 wmWindow *wm_window_copy (bContext *C, wmWindow *winorig);
64 void wm_window_testbreak (void);
66 /* *************** window operators ************** */
67 int wm_window_duplicate_exec(bContext *C, struct wmOperator *op);
68 int wm_window_fullscreen_toggle_exec(bContext *C, struct wmOperator *op);
70 #endif /* WM_WINDOW_H */