Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-07-10 19:17:06 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-07-10 19:30:26 +0300
commit3443686399feb4f96a9ea85f52f6750388b883a2 (patch)
tree7e4c91319ba3a2d13d4e83a43c0b690ed8e63547 /source/blender/makesdna/DNA_sequence_types.h
parent9a3dfa1f21168c19a3346bb4813b1313deb6fb18 (diff)
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.
Diffstat (limited to 'source/blender/makesdna/DNA_sequence_types.h')
-rw-r--r--source/blender/makesdna/DNA_sequence_types.h18
1 files changed, 14 insertions, 4 deletions
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 {