2 * ***** BEGIN GPL LICENSE BLOCK *****
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software Foundation,
16 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 * The Original Code is Copyright (C) 2012 Blender Foundation.
19 * All rights reserved.
21 * Contributor(s): Blender Foundation,
24 * ***** END GPL LICENSE BLOCK *****
36 struct MaskLayerShape;
39 void ED_mask_size(const struct bContext *C, int *width, int *height);
40 void ED_mask_aspect(const struct bContext *C, float *aspx, float *aspy);
42 void ED_operatortypes_mask(void);
43 void ED_keymap_mask(struct wmKeyConfig *keyconf);
44 void ED_operatormacros_mask(void);
47 void ED_mask_draw(const bContext *C, const char draw_flag, const char draw_type);
48 void ED_mask_draw_region(struct Mask *mask, struct ARegion *ar,
49 const char draw_flag, const char draw_type,
50 int width, int height,
51 const short do_scale_applied, const short do_post_draw,
56 void ED_mask_layer_shape_auto_key(struct MaskLayer *masklay, const int frame);
57 int ED_mask_layer_shape_auto_key_all(struct Mask *mask, const int frame);
58 int ED_mask_layer_shape_auto_key_select(struct Mask *mask, const int frame);
60 /* ----------- Mask AnimEdit API ------------------ */
61 short ED_masklayer_frames_looper(struct MaskLayer *masklay, struct Scene *scene,
62 short (*masklay_shape_cb)(struct MaskLayerShape *, struct Scene *));
63 void ED_masklayer_make_cfra_list(struct MaskLayer *masklay, ListBase *elems, short onlysel);
65 short ED_masklayer_frame_select_check(struct MaskLayer *masklay);
66 void ED_masklayer_frame_select_set(struct MaskLayer *masklay, short mode);
67 void ED_masklayer_frames_select_border(struct MaskLayer *masklay, float min, float max, short select_mode);
68 void ED_mask_select_frames(struct MaskLayer *masklay, short select_mode);
69 void ED_mask_select_frame(struct MaskLayer *masklay, int selx, short select_mode);
71 void ED_masklayer_frames_delete(struct MaskLayer *masklay);
72 void ED_masklayer_frames_duplicate(struct MaskLayer *masklay);
75 void free_gpcopybuf(void);
76 void copy_gpdata(void);
77 void paste_gpdata(void);
79 void snap_masklayer_frames(struct MaskLayer *masklay, short mode);
80 void mirror_masklayer_frames(struct MaskLayer *masklay, short mode);
83 #endif /* __ED_MASK_H__ */