Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/mask/mask_intern.h
| Show All 17 Lines | |||||
| */ | */ | ||||
| /** \file | /** \file | ||||
| * \ingroup spclip | * \ingroup spclip | ||||
| */ | */ | ||||
| #pragma once | #pragma once | ||||
| #include "ED_clip.h" | |||||
| struct Mask; | struct Mask; | ||||
| struct bContext; | struct bContext; | ||||
| struct wmOperatorType; | struct wmOperatorType; | ||||
| /* internal exports only */ | /* internal exports only */ | ||||
| /* mask_add.c */ | /* mask_add.c */ | ||||
| void MASK_OT_add_vertex(struct wmOperatorType *ot); | void MASK_OT_add_vertex(struct wmOperatorType *ot); | ||||
| ▲ Show 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | |||||
| void ED_mask_layer_select_set(struct MaskLayer *mask_layer, const bool do_select); | void ED_mask_layer_select_set(struct MaskLayer *mask_layer, const bool do_select); | ||||
| void ED_mask_select_toggle_all(struct Mask *mask, int action); | void ED_mask_select_toggle_all(struct Mask *mask, int action); | ||||
| void ED_mask_select_flush_all(struct Mask *mask); | void ED_mask_select_flush_all(struct Mask *mask); | ||||
| /* mask_editor.c */ | /* mask_editor.c */ | ||||
| bool ED_maskedit_poll(struct bContext *C); | bool ED_maskedit_poll(struct bContext *C); | ||||
| bool ED_maskedit_mask_poll(struct bContext *C); | bool ED_maskedit_mask_poll(struct bContext *C); | ||||
| /* Generalized solution for preserving editor viewport when making changes while lock-to-selection | |||||
| * is enabled. | |||||
| * Any mask operator can use this API, without worrying that some editors do not have an idea of | |||||
| * lock-to-selection. */ | |||||
| typedef struct MaskViewLockState { | |||||
| ClipViewLockState space_clip_state; | |||||
| } MaskViewLockState; | |||||
| void ED_mask_view_lock_state_store(const struct bContext *C, MaskViewLockState *state); | |||||
| void ED_mask_view_lock_state_restore_no_jump(const struct bContext *C, | |||||
| const MaskViewLockState *state); | |||||
| /* mask_query.c */ | /* mask_query.c */ | ||||
| bool ED_mask_find_nearest_diff_point(const struct bContext *C, | bool ED_mask_find_nearest_diff_point(const struct bContext *C, | ||||
| struct Mask *mask, | struct Mask *mask, | ||||
| const float normal_co[2], | const float normal_co[2], | ||||
| int threshold, | int threshold, | ||||
| bool feather, | bool feather, | ||||
| float tangent[2], | float tangent[2], | ||||
| const bool use_deform, | const bool use_deform, | ||||
| Show All 29 Lines | |||||