2 * This program is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU General Public License
4 * as published by the Free Software Foundation; either version 2
5 * of the License, or (at your option) any later version.
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software Foundation,
14 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 #ifndef __ED_PAINT_H__
22 #define __ED_PAINT_H__
33 void ED_operatortypes_paint(void);
34 void ED_operatormacros_paint(void);
35 void ED_keymap_paint(struct wmKeyConfig *keyconf);
38 void ED_imapaint_clear_partial_redraw(void);
39 void ED_imapaint_dirty_region(struct Image *ima, struct ImBuf *ibuf, int x, int y, int w, int h, bool find_old);
40 void ED_imapaint_bucket_fill(struct bContext *C, float color[3], struct wmOperator *op);
42 /* paint_image_undo.c */
43 void ED_image_undo_push_begin(const char *name, int paint_mode);
44 void ED_image_undo_push_end(void);
45 void ED_image_undo_restore(struct UndoStep *us);
47 void ED_image_undosys_type(struct UndoType *ut);
49 /* paint_curve_undo.c */
50 void ED_paintcurve_undo_push_begin(const char *name);
51 void ED_paintcurve_undo_push_end(void);
53 void ED_paintcurve_undosys_type(struct UndoType *ut);
55 #endif /* __ED_PAINT_H__ */