Blender V2.61 - r43446

wm_window.h

Go to the documentation of this file.
00001 /*
00002  * ***** BEGIN GPL LICENSE BLOCK *****
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version. 
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software Foundation,
00016  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00017  *
00018  * The Original Code is Copyright (C) 2007 Blender Foundation.
00019  * All rights reserved.
00020  *
00021  * 
00022  * Contributor(s): Blender Foundation
00023  *
00024  * ***** END GPL LICENSE BLOCK *****
00025  */
00026 
00032 #ifndef WM_WINDOW_H
00033 #define WM_WINDOW_H
00034 
00035 struct bScreen;
00036 struct wmOperator;
00037 
00038 /* *************** internal api ************** */
00039 void        wm_ghost_init           (bContext *C);
00040 void        wm_ghost_exit(void);
00041 
00042 void wm_get_screensize(int *width_r, int *height_r);
00043 
00044 wmWindow    *wm_window_new          (bContext *C);
00045 void        wm_window_free          (bContext *C, wmWindowManager *wm, wmWindow *win);
00046 void        wm_window_close         (bContext *C, wmWindowManager *wm, wmWindow *win);
00047 
00048 void        wm_window_title             (wmWindowManager *wm, wmWindow *win);
00049 void        wm_window_add_ghostwindows  (bContext *C, wmWindowManager *wm);
00050 void        wm_window_process_events    (const bContext *C);
00051 void        wm_window_process_events_nosleep(void);
00052 
00053 void        wm_window_make_drawable(bContext *C, wmWindow *win);
00054 
00055 void        wm_window_raise         (wmWindow *win);
00056 void        wm_window_lower         (wmWindow *win);
00057 void        wm_window_set_size      (wmWindow *win, int width, int height);
00058 void        wm_window_get_size      (wmWindow *win, int *width_r, int *height_r);
00059 void        wm_window_get_size_ghost    (wmWindow *win, int *width_r, int *height_r);
00060 void        wm_window_get_position  (wmWindow *win, int *posx_r, int *posy_r);
00061 void        wm_window_swap_buffers  (wmWindow *win);
00062 
00063 void        wm_get_cursor_position  (wmWindow *win, int *x, int *y);
00064 
00065 wmWindow    *wm_window_copy         (bContext *C, wmWindow *winorig);
00066 
00067 void        wm_window_testbreak     (void);
00068 
00069 /* *************** window operators ************** */
00070 int         wm_window_duplicate_exec(bContext *C, struct wmOperator *op);
00071 int         wm_window_fullscreen_toggle_exec(bContext *C, struct wmOperator *op);
00072 
00073 #endif /* WM_WINDOW_H */
00074