ges-enums: completed support for all options in TextAlign
authorLuis de Bethencourt <luis@debethencourt.com>
Mon, 8 Aug 2011 16:30:42 +0000 (18:30 +0200)
committerLuis de Bethencourt <luis@debethencourt.com>
Mon, 8 Aug 2011 16:30:42 +0000 (18:30 +0200)
Added the center and position options to the vertical, and horizontal
properties of text alignment.

ges/ges-enums.c
ges/ges-enums.h

index 003da6d..aaa491d 100644 (file)
@@ -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},
   };
 
index 9b1af25..b19be48 100644 (file)
@@ -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