From 3443686399feb4f96a9ea85f52f6750388b883a2 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 11 Jul 2015 02:17:06 +1000 Subject: Sequencer: changes to text effect strip - default alignment to lower center. - placement is now relative, so changing output size keeps correct placement. - instead of center override, add align option (left/right/center). Also don't use pixel-size for setting the font size, on new strips. Better not have UI prefs impact low level API's. --- source/blender/makesdna/DNA_sequence_types.h | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'source/blender/makesdna/DNA_sequence_types.h') diff --git a/source/blender/makesdna/DNA_sequence_types.h b/source/blender/makesdna/DNA_sequence_types.h index 377da2a7d82..3f3bfdfe1b1 100644 --- a/source/blender/makesdna/DNA_sequence_types.h +++ b/source/blender/makesdna/DNA_sequence_types.h @@ -274,14 +274,24 @@ typedef struct GaussianBlurVars { typedef struct TextVars { char text[512]; int text_size; - int xpos, ypos; - int flags; + float loc[2]; + short flag; + char align; + char pad; } TextVars; +/* TextVars.flag */ enum { - TEXT_SEQ_SHADOW = (1 << 0), - TEXT_SEQ_AUTO_CENTER = (1 << 1), + SEQ_TEXT_SHADOW = (1 << 0), }; + +/* TextVars.align */ +enum { + SEQ_TEXT_ALIGN_LEFT = 0, + SEQ_TEXT_ALIGN_CENTER = 1, + SEQ_TEXT_ALIGN_RIGHT = 2, +}; + /* ***************** Sequence modifiers ****************** */ typedef struct SequenceModifierData { -- cgit v1.2.3