2011-02-23 10:52:22 +00:00
|
|
|
/*
|
2010-03-21 01:14:04 +00:00
|
|
|
* $Id$
|
2007-12-24 18:27:28 +00:00
|
|
|
*
|
|
|
|
* ***** 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,
|
2010-02-12 13:34:04 +00:00
|
|
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2007-12-24 18:27:28 +00:00
|
|
|
*
|
|
|
|
* The Original Code is Copyright (C) 2007 Blender Foundation.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Contributor(s): Blender Foundation
|
|
|
|
*
|
|
|
|
* ***** END GPL LICENSE BLOCK *****
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef WM_WINDOW_H
|
|
|
|
#define WM_WINDOW_H
|
|
|
|
|
|
|
|
struct bScreen;
|
2009-12-24 16:10:26 +00:00
|
|
|
struct wmOperator;
|
2007-12-24 18:27:28 +00:00
|
|
|
|
|
|
|
/* *************** internal api ************** */
|
|
|
|
void wm_ghost_init (bContext *C);
|
2009-08-05 02:40:51 +00:00
|
|
|
void wm_ghost_exit(void);
|
2007-12-24 18:27:28 +00:00
|
|
|
|
2010-08-16 12:14:09 +00:00
|
|
|
void wm_get_screensize(int *width_r, int *height_r);
|
|
|
|
|
2008-11-18 13:51:02 +00:00
|
|
|
wmWindow *wm_window_new (bContext *C);
|
2009-10-20 13:58:53 +00:00
|
|
|
void wm_window_free (bContext *C, wmWindowManager *wm, wmWindow *win);
|
|
|
|
void wm_window_close (bContext *C, wmWindowManager *wm, wmWindow *win);
|
2009-02-13 13:33:01 +00:00
|
|
|
|
2009-02-18 13:29:54 +00:00
|
|
|
void wm_window_title (wmWindowManager *wm, wmWindow *win);
|
2010-09-15 11:48:59 +00:00
|
|
|
void wm_window_add_ghostwindows (bContext *C, wmWindowManager *wm);
|
2008-12-22 12:57:53 +00:00
|
|
|
void wm_window_process_events (const bContext *C);
|
2010-10-16 02:40:31 +00:00
|
|
|
void wm_window_process_events_nosleep(void);
|
2007-12-24 18:27:28 +00:00
|
|
|
|
|
|
|
void wm_window_make_drawable(bContext *C, wmWindow *win);
|
|
|
|
|
|
|
|
void wm_window_raise (wmWindow *win);
|
|
|
|
void wm_window_lower (wmWindow *win);
|
|
|
|
void wm_window_set_size (wmWindow *win, int width, int height);
|
|
|
|
void wm_window_get_size (wmWindow *win, int *width_r, int *height_r);
|
2009-11-30 14:10:46 +00:00
|
|
|
void wm_window_get_size_ghost (wmWindow *win, int *width_r, int *height_r);
|
2007-12-24 18:27:28 +00:00
|
|
|
void wm_window_get_position (wmWindow *win, int *posx_r, int *posy_r);
|
|
|
|
void wm_window_swap_buffers (wmWindow *win);
|
|
|
|
|
2009-12-07 18:06:37 +00:00
|
|
|
void wm_get_cursor_position (wmWindow *win, int *x, int *y);
|
|
|
|
|
2007-12-24 18:27:28 +00:00
|
|
|
wmWindow *wm_window_copy (bContext *C, wmWindow *winorig);
|
|
|
|
|
2008-12-30 13:16:14 +00:00
|
|
|
void wm_window_testbreak (void);
|
|
|
|
|
2007-12-24 18:27:28 +00:00
|
|
|
/* *************** window operators ************** */
|
2010-10-16 02:40:31 +00:00
|
|
|
int wm_window_duplicate_exec(bContext *C, struct wmOperator *op);
|
|
|
|
int wm_window_fullscreen_toggle_exec(bContext *C, struct wmOperator *op);
|
2007-12-24 18:27:28 +00:00
|
|
|
|
|
|
|
#endif /* WM_WINDOW_H */
|
|
|
|
|