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 *****
34 typedef struct wmPaintCursor {
35 struct wmPaintCursor *next, *prev;
39 int (*poll)(struct bContext *C);
40 void (*draw)(bContext *C, int, int, void *customdata);
43 extern void wm_close_and_free(bContext *C, wmWindowManager *);
44 extern void wm_close_and_free_all(bContext *C, ListBase *);
46 extern void wm_add_default(bContext *C);
47 extern void wm_clear_default_size(bContext *C);
49 /* register to windowmanager for redo or macro */
50 void wm_operator_register(bContext *C, wmOperator *op);
52 extern void wm_report_free(wmReport *report);
54 /* wm_operator.c, for init/exit */
55 void wm_operatortype_free(void);
56 void wm_operatortype_init(void);
57 void wm_window_keymap(wmKeyConfig *keyconf);
59 void wm_tweakevent_test(bContext *C, wmEvent *event, int action);
62 #define WM_LASSO_MIN_POINTS 1024
63 void wm_gesture_draw(struct wmWindow *win);
64 int wm_gesture_evaluate(wmGesture *gesture);
65 void wm_gesture_tag_redraw(bContext *C);
68 void wm_jobs_timer(const bContext *C, wmWindowManager *wm, wmTimer *wt);
69 void wm_jobs_timer_ended(wmWindowManager *wm, wmTimer *wt);
72 void wm_autosave_timer(const bContext *C, wmWindowManager *wm, wmTimer *wt);
73 void wm_autosave_timer_ended(wmWindowManager *wm);
74 void wm_autosave_delete(void);
75 void wm_autosave_read(bContext *C, struct ReportList *reports);
76 void wm_autosave_location(char *filename);
78 /* hack to store circle select size - campbell, must replace with nice operator memory */
79 #define GESTURE_MEMORY
82 extern int circle_select_size;