Blender V2.61 - r43446
|
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 00031 #ifndef WM_H 00032 #define WM_H 00033 00034 struct wmWindow; 00035 struct ReportList; 00036 00037 typedef struct wmPaintCursor { 00038 struct wmPaintCursor *next, *prev; 00039 00040 void *customdata; 00041 00042 int (*poll)(struct bContext *C); 00043 void (*draw)(bContext *C, int, int, void *customdata); 00044 } wmPaintCursor; 00045 00046 extern void wm_close_and_free(bContext *C, wmWindowManager *); 00047 extern void wm_close_and_free_all(bContext *C, ListBase *); 00048 00049 extern void wm_add_default(bContext *C); 00050 extern void wm_clear_default_size(bContext *C); 00051 00052 /* register to windowmanager for redo or macro */ 00053 void wm_operator_register(bContext *C, wmOperator *op); 00054 00055 extern void wm_report_free(wmReport *report); 00056 00057 /* wm_operator.c, for init/exit */ 00058 void wm_operatortype_free(void); 00059 void wm_operatortype_init(void); 00060 void wm_window_keymap(wmKeyConfig *keyconf); 00061 00062 void wm_tweakevent_test(bContext *C, wmEvent *event, int action); 00063 00064 /* wm_gesture.c */ 00065 #define WM_LASSO_MIN_POINTS 1024 00066 void wm_gesture_draw(struct wmWindow *win); 00067 int wm_gesture_evaluate(wmGesture *gesture); 00068 void wm_gesture_tag_redraw(bContext *C); 00069 00070 /* wm_jobs.c */ 00071 void wm_jobs_timer(const bContext *C, wmWindowManager *wm, wmTimer *wt); 00072 void wm_jobs_timer_ended(wmWindowManager *wm, wmTimer *wt); 00073 00074 /* wm_files.c */ 00075 void wm_autosave_timer(const bContext *C, wmWindowManager *wm, wmTimer *wt); 00076 void wm_autosave_timer_ended(wmWindowManager *wm); 00077 void wm_autosave_delete(void); 00078 void wm_autosave_read(bContext *C, struct ReportList *reports); 00079 void wm_autosave_location(char *filepath); 00080 00081 /* hack to store circle select size - campbell, must replace with nice operator memory */ 00082 #define GESTURE_MEMORY 00083 00084 #ifdef GESTURE_MEMORY 00085 extern int circle_select_size; 00086 #endif 00087 00088 #endif /* WM_H */ 00089