diff options
author | Sebastian Parborg <darkdefende@gmail.com> | 2022-04-28 13:50:22 +0300 |
---|---|---|
committer | Sebastian Parborg <darkdefende@gmail.com> | 2022-04-28 13:55:51 +0300 |
commit | 77794b1a7b99bd689d1d9872c61d7990fbad2ce4 (patch) | |
tree | 48d0a00d5497cb94aa44a157af6fee2bffe0758f /source/blender/editors/space_sequencer/sequencer_intern.h | |
parent | 16fe767d0090f3ff2b2c45c63cb4a84805991f3a (diff) |
VSE: Add precise drag and drop and strip previews
This patch adds the drag and drop strip previews in the VSE.
It also adds two new functions to the drag and drop API.
1. "draw_in_view" for callbacks that wants to draw elements in local viewport coordinates
2. "on_drag_start" that can be used for prefetching data only once at the start of the drag.
Reviewed By: Julian, Campbell
Differential Revision: http://developer.blender.org/D14560
Diffstat (limited to 'source/blender/editors/space_sequencer/sequencer_intern.h')
-rw-r--r-- | source/blender/editors/space_sequencer/sequencer_intern.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_intern.h b/source/blender/editors/space_sequencer/sequencer_intern.h index 781aa521880..67df065ef35 100644 --- a/source/blender/editors/space_sequencer/sequencer_intern.h +++ b/source/blender/editors/space_sequencer/sequencer_intern.h @@ -29,6 +29,7 @@ struct ScrArea; struct Editing; struct ListBase; +#define DEFAULT_IMG_STRIP_LENGTH 25 /* XXX arbitrary but ok for now. */ #define OVERLAP_ALPHA 180 typedef struct SeqChannelDrawContext { @@ -237,6 +238,10 @@ void SEQUENCER_OT_sound_strip_add(struct wmOperatorType *ot); void SEQUENCER_OT_image_strip_add(struct wmOperatorType *ot); void SEQUENCER_OT_effect_strip_add(struct wmOperatorType *ot); +/* sequencer_drag_drop.c */ + +void sequencer_dropboxes(void); + /* sequencer_ops.c */ void sequencer_operatortypes(void); |