Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/ED_transform.h
| Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | |||||
| bool calculateTransformCenter(struct bContext *C, | bool calculateTransformCenter(struct bContext *C, | ||||
| int centerMode, | int centerMode, | ||||
| float cent3d[3], | float cent3d[3], | ||||
| float cent2d[2]); | float cent2d[2]); | ||||
| struct Object; | struct Object; | ||||
| struct Scene; | struct Scene; | ||||
| struct wmGizmoGroupType; | struct wmGizmoGroupType; | ||||
| struct VideoEdit; | |||||
| /* UNUSED */ | /* UNUSED */ | ||||
| // int BIF_snappingSupported(struct Object *obedit); | // int BIF_snappingSupported(struct Object *obedit); | ||||
| struct ReportList; | struct ReportList; | ||||
| struct TransformOrientation; | struct TransformOrientation; | ||||
| struct bContext; | struct bContext; | ||||
| ▲ Show 20 Lines • Show All 118 Lines • ▼ Show 20 Lines | int ED_transform_calc_gizmo_stats(const struct bContext *C, | ||||
| struct TransformBounds *tbounds); | struct TransformBounds *tbounds); | ||||
| /** | /** | ||||
| * Iterates over all the strips and finds the closest snapping candidate of either \a frame_1 or \a | * Iterates over all the strips and finds the closest snapping candidate of either \a frame_1 or \a | ||||
| * frame_2. The closest snapping candidate will be the closest start or end frame of an existing | * frame_2. The closest snapping candidate will be the closest start or end frame of an existing | ||||
| * strip. | * strip. | ||||
| * \returns True if there was anything to snap to. | * \returns True if there was anything to snap to. | ||||
| */ | */ | ||||
| bool ED_transform_snap_sequencer_to_closest_strip_calc(struct Scene *scene, | bool ED_transform_snap_sequencer_to_closest_strip_calc(struct VideoEdit *video_edit, | ||||
| struct ARegion *region, | struct ARegion *region, | ||||
| int frame_1, | int frame_1, | ||||
| int frame_2, | int frame_2, | ||||
| int *r_snap_distance, | int *r_snap_distance, | ||||
| float *r_snap_frame); | float *r_snap_frame); | ||||
| void ED_draw_sequencer_snap_point(struct bContext *C, float snap_point); | void ED_draw_sequencer_snap_point(struct bContext *C, float snap_point); | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||