From 09ef6dbeac6b0dec513f24ad38adeacae65cdad4 Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Mon, 8 Aug 2011 18:30:42 +0200 Subject: [PATCH] ges-enums: completed support for all options in TextAlign Added the center and position options to the vertical, and horizontal properties of text alignment. --- ges/ges-enums.c | 3 +++ ges/ges-enums.h | 16 +++++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/ges/ges-enums.c b/ges/ges-enums.c index 003da6d..aaa491d 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 9b1af25..b19be48 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 -- 2.7.4