titlesource: Add support for absolute positionning

This commit is contained in:
Thibault Saunier 2016-04-01 10:09:39 +02:00
parent c222da6862
commit 7248077011
3 changed files with 7 additions and 2 deletions

View file

@ -421,6 +421,7 @@ ges_text_valign_get_type (void)
{GES_TEXT_VALIGN_BOTTOM, "GES_TEXT_VALIGN_BOTTOM", "bottom"},
{GES_TEXT_VALIGN_TOP, "GES_TEXT_VALIGN_TOP", "top"},
{GES_TEXT_VALIGN_POSITION, "GES_TEXT_VALIGN_POSITION", "position"},
{GES_TEXT_VALIGN_ABSOLUTE, "GES_TEXT_VALIGN_ABSOLUTE", "absolute"},
{GES_TEXT_VALIGN_CENTER, "GES_TEXT_VALIGN_CENTER", "center"},
{0, NULL, NULL},
};
@ -443,6 +444,7 @@ ges_text_halign_get_type (void)
{GES_TEXT_HALIGN_CENTER, "GES_TEXT_HALIGN_CENTER", "center"},
{GES_TEXT_HALIGN_RIGHT, "GES_TEXT_HALIGN_RIGHT", "right"},
{GES_TEXT_HALIGN_POSITION, "GES_TEXT_HALIGN_POSITION", "position"},
{GES_TEXT_HALIGN_ABSOLUTE, "GES_TEXT_HALIGN_ABSOLUTE", "absolute"},
{0, NULL, NULL},
};

View file

@ -239,6 +239,7 @@ typedef enum {
GES_TEXT_VALIGN_BOTTOM,
GES_TEXT_VALIGN_TOP,
GES_TEXT_VALIGN_POSITION,
GES_TEXT_VALIGN_ABSOLUTE,
GES_TEXT_VALIGN_CENTER
} GESTextVAlign;
@ -262,7 +263,8 @@ typedef enum {
GES_TEXT_HALIGN_LEFT = 0,
GES_TEXT_HALIGN_CENTER = 1,
GES_TEXT_HALIGN_RIGHT = 2,
GES_TEXT_HALIGN_POSITION = 4
GES_TEXT_HALIGN_POSITION = 4,
GES_TEXT_HALIGN_ABSOLUTE = 5
} GESTextHAlign;
#define DEFAULT_HALIGNMENT GES_TEXT_HALIGN_CENTER

View file

@ -241,7 +241,8 @@ ges_title_source_create_source (GESTrackElement * object)
GESTitleSourcePrivate *priv = self->priv;
const gchar *bg_props[] = { "pattern", "foreground-color", NULL };
const gchar *text_props[] = { "text", "font-desc", "valignment", "halignment",
"color", "xpos", "ypos", "outline-color", "shaded-background",
"color", "xpos", "ypos", "x-absolute", "y-absolute", "outline-color",
"shaded-background",
"text-x", "text-y", "text-width", "text-height", NULL
};