mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
ges-enums: completed support for all options in TextAlign
Added the center and position options to the vertical, and horizontal properties of text alignment.
This commit is contained in:
parent
0292e86b9b
commit
09ef6dbeac
2 changed files with 14 additions and 5 deletions
|
@ -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},
|
||||
};
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue