diff --git a/ges/ges-enums.c b/ges/ges-enums.c index 003da6d50c..aaa491d1a3 100644 --- a/ges/ges-enums.c +++ b/ges/ges-enums.c @@ -436,6 +436,8 @@ ges_text_valign_get_type (void) {GES_TEXT_VALIGN_BASELINE, "baseline", "baseline"}, {GES_TEXT_VALIGN_BOTTOM, "bottom", "bottom"}, {GES_TEXT_VALIGN_TOP, "top", "top"}, + {GES_TEXT_VALIGN_POSITION, "position", "position"}, + {GES_TEXT_VALIGN_CENTER, "center", "center"}, {0, NULL, NULL}, }; @@ -456,6 +458,7 @@ ges_text_halign_get_type (void) {GES_TEXT_HALIGN_LEFT, "left", "left"}, {GES_TEXT_HALIGN_CENTER, "center", "center"}, {GES_TEXT_HALIGN_RIGHT, "right", "right"}, + {GES_TEXT_HALIGN_POSITION, "position", "position"}, {0, NULL, NULL}, }; diff --git a/ges/ges-enums.h b/ges/ges-enums.h index 9b1af25173..b19be480ee 100644 --- a/ges/ges-enums.h +++ b/ges/ges-enums.h @@ -213,14 +213,18 @@ GType ges_video_standard_transition_type_get_type (void); * GESTextVAlign: * @GES_TEXT_VALIGN_BASELINE: draw text on the baseline * @GES_TEXT_VALIGN_BOTTOM: draw text on the bottom - * @GES_TEXT_VALIGN_TOP: draw test on top + * @GES_TEXT_VALIGN_TOP: draw text on top + * @GES_TEXT_VALIGN_POSITION: draw text on ypos position + * @GES_TEXT_VALIGN_CENTER: draw text on the center * * Vertical alignment of the text. */ typedef enum { GES_TEXT_VALIGN_BASELINE, GES_TEXT_VALIGN_BOTTOM, - GES_TEXT_VALIGN_TOP + GES_TEXT_VALIGN_TOP, + GES_TEXT_VALIGN_POSITION, + GES_TEXT_VALIGN_CENTER } GESTextVAlign; #define DEFAULT_VALIGNMENT GES_TEXT_VALIGN_BASELINE @@ -235,13 +239,15 @@ GType ges_text_valign_get_type (void); * @GES_TEXT_HALIGN_LEFT: align text left * @GES_TEXT_HALIGN_CENTER: align text center * @GES_TEXT_HALIGN_RIGHT: align text right + * @GES_TEXT_HALIGN_POSITION: align text on xpos position * * Horizontal alignment of the text. */ typedef enum { - GES_TEXT_HALIGN_LEFT, - GES_TEXT_HALIGN_CENTER, - GES_TEXT_HALIGN_RIGHT + GES_TEXT_HALIGN_LEFT = 0, + GES_TEXT_HALIGN_CENTER = 1, + GES_TEXT_HALIGN_RIGHT = 2, + GES_TEXT_HALIGN_POSITION = 4 } GESTextHAlign; #define DEFAULT_HALIGNMENT GES_TEXT_HALIGN_CENTER