GES.TitleClip

g GES.Clip GES.Clip GES.SourceClip GES.SourceClip GES.Clip->GES.SourceClip GES.Container GES.Container GES.Container->GES.Clip GES.Extractable GES.Extractable GES.TimelineElement GES.TimelineElement GES.Extractable->GES.TimelineElement GES.MetaContainer GES.MetaContainer GES.MetaContainer->GES.TimelineElement GES.TitleClip GES.TitleClip GES.SourceClip->GES.TitleClip GES.TimelineElement->GES.Container GObject.GInterface GObject.GInterface GObject.GInterface->GES.Extractable GObject.GInterface->GES.MetaContainer GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->GES.TimelineElement GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned

Subclasses:

None

Methods

Inherited:

GES.SourceClip (1), GES.Clip (23), GES.Container (6), GES.TimelineElement (38), GObject.Object (37), GES.Extractable (3), GES.MetaContainer (40)

Structs:

GObject.ObjectClass (5)

class

new ()

get_background_color ()

get_font_desc ()

get_halignment ()

get_text ()

get_text_color ()

get_valignment ()

get_xpos ()

get_ypos ()

set_background (background)

set_color (color)

set_font_desc (font_desc)

set_halignment (halign)

set_text (text)

set_valignment (valign)

set_xpos (position)

set_ypos (position)

Virtual Methods

Inherited:

GES.Clip (2), GES.Container (6), GES.TimelineElement (18), GObject.Object (7), GES.Extractable (3)

Properties

Inherited:

GES.Clip (3), GES.Container (1), GES.TimelineElement (9)

Name

Type

Flags

Short Description

background

int

r/w/c

The background of the text deprecated

color

int

r/w/c

The color of the text deprecated

font-desc

str

r/w/c

Pango font description of font to be used for rendering. See documentation of pango_font_description_from_string for syntax. deprecated

halignment

GES.TextHAlign

r/w/c

Horizontal alignment of the text deprecated

text

str

r/w/c

The text to display deprecated

valignment

GES.TextVAlign

r/w/c

Vertical alignment of the text deprecated

xpos

float

r/w/c

The horizontal position deprecated

ypos

float

r/w/c

The vertical position deprecated

Signals

Inherited:

GES.Container (2), GES.TimelineElement (3), GObject.Object (1), GES.MetaContainer (1)

Fields

Inherited:

GES.Container (2), GES.TimelineElement (3), GObject.Object (1), GES.MetaContainer (1)

Name

Type

Access

Description

parent

GES.SourceClip

r

Class Details

class GES.TitleClip(**kwargs)
Bases:

GES.SourceClip

Abstract:

No

Structure:

GES.TitleClipClass

Renders the given text in the specified font, at specified position, and with the specified background pattern.

classmethod new()[source]
Returns:

The newly created GES.TitleClip, or None if there was an error.

Return type:

GES.TitleClip or None

Creates a new GES.TitleClip

get_background_color()[source]
Returns:

The color used by self.

Return type:

int

Get the background used by self.

Deprecated since version 1.6: use #ges_timeline_element_get_children_properties instead. See GES.TitleSource for more information about exposed properties

get_font_desc()[source]
Returns:

The pango font description used by self.

Return type:

str or None

Get the pango font description used by self.

Deprecated since version 1.6: use #ges_timeline_element_get_children_properties instead. See GES.TitleSource for more information about exposed properties

get_halignment()[source]
Returns:

The horizontal aligment used by self.

Return type:

GES.TextHAlign

Get the horizontal aligment used by self.

Deprecated since version 1.6: use #ges_timeline_element_get_children_properties instead. See GES.TitleSource for more information about exposed properties

get_text()[source]
Returns:

The text currently set on self.

Return type:

str or None

Get the text currently set on self.

Deprecated since version 1.6: use #ges_timeline_element_get_children_properties instead. See GES.TitleSource for more information about exposed properties

get_text_color()[source]
Returns:

The color used by self.

Return type:

int

Get the color used by self.

Deprecated since version 1.6: use #ges_timeline_element_get_children_properties instead. See GES.TitleSource for more information about exposed properties

get_valignment()[source]
Returns:

The vertical aligment used by self.

Return type:

GES.TextVAlign

Get the vertical aligment used by self.

Deprecated since version 1.6: use #ges_timeline_element_get_children_properties instead. See GES.TitleSource for more information about exposed properties

get_xpos()[source]
Returns:

The horizontal position used by self.

Return type:

float

Get the horizontal position used by self.

Deprecated since version 1.6: use #ges_timeline_element_get_children_properties instead. See GES.TitleSource for more information about exposed properties

get_ypos()[source]
Returns:

The vertical position used by self.

Return type:

float

Get the vertical position used by self.

Deprecated since version 1.6: use #ges_timeline_element_get_children_property instead

set_background(background)[source]
Parameters:

background (int) – The color self is being set to

Sets the background of the text.

Deprecated since version 1.6: use #ges_timeline_element_set_children_properties instead. See GES.TitleSource for more information about exposed properties

set_color(color)[source]
Parameters:

color (int) – The color self is being set to

Sets the color of the text.

Deprecated since version 1.6: use #ges_timeline_element_set_children_properties instead. See GES.TitleSource for more information about exposed properties

set_font_desc(font_desc)[source]
Parameters:

font_desc (str or None) – the pango font description

Sets the pango font description of the text.

Deprecated since version 1.6: use #ges_timeline_element_set_children_properties instead. See GES.TitleSource for more information about exposed properties

set_halignment(halign)[source]
Parameters:

halign (GES.TextHAlign) – GES.TextHAlign

Sets the horizontal aligment of the text.

Deprecated since version 1.6: use #ges_timeline_element_set_children_properties instead. See GES.TitleSource for more information about exposed properties

set_text(text)[source]
Parameters:

text (str or None) – the text to render. an internal copy of this text will be made.

Sets the text this clip will render.

Deprecated since version 1.6: use #ges_timeline_element_set_children_properties instead. See GES.TitleSource for more information about exposed properties

set_valignment(valign)[source]
Parameters:

valign (GES.TextVAlign) – GES.TextVAlign

Sets the vertical aligment of the text.

Deprecated since version 1.6: use #ges_timeline_element_set_children_properties instead. See GES.TitleSource for more information about exposed properties

set_xpos(position)[source]
Parameters:

position (float) – The horizontal position self is being set to

Sets the horizontal position of the text.

Deprecated since version 1.6: use #ges_timeline_element_set_children_properties instead. See GES.TitleSource for more information about exposed properties

set_ypos(position)[source]
Parameters:

position (float) – The vertical position self is being set to

Sets the vertical position of the text.

Deprecated since version 1.6: use #ges_timeline_element_set_children_properties instead. See GES.TitleSource for more information about exposed properties

Property Details

GES.TitleClip.props.background
Name:

background

Type:

int

Default Value:

4294967295

Flags:

READABLE, WRITABLE, CONSTRUCT

The background of the text

Deprecated since version 1.6: use #ges_timeline_element_set_children_properties or #ges_timeline_element_get_children_properties instead. See GES.TitleSource for more information about exposed properties

GES.TitleClip.props.color
Name:

color

Type:

int

Default Value:

4294967295

Flags:

READABLE, WRITABLE, CONSTRUCT

The color of the text

Deprecated since version 1.6: use #ges_timeline_element_set_children_properties or #ges_timeline_element_get_children_properties instead. See GES.TitleSource for more information about exposed properties

GES.TitleClip.props.font_desc
Name:

font-desc

Type:

str

Default Value:

'Serif 36'

Flags:

READABLE, WRITABLE, CONSTRUCT

Pango font description string

Deprecated since version 1.6: use #ges_timeline_element_set_children_properties or #ges_timeline_element_get_children_properties instead. See GES.TitleSource for more information about exposed properties

GES.TitleClip.props.halignment
Name:

halignment

Type:

GES.TextHAlign

Default Value:

GES.TextHAlign.CENTER

Flags:

READABLE, WRITABLE, CONSTRUCT

Horizontal alignment of the text

Deprecated since version 1.6: use #ges_timeline_element_set_children_properties or #ges_timeline_element_get_children_properties instead. See GES.TitleSource for more information about exposed properties

GES.TitleClip.props.text
Name:

text

Type:

str

Default Value:

''

Flags:

READABLE, WRITABLE, CONSTRUCT

The text to diplay

Deprecated since version 1.6: use #ges_timeline_element_set_children_properties or #ges_timeline_element_get_children_properties instead. See GES.TitleSource for more information about exposed properties

GES.TitleClip.props.valignment
Name:

valignment

Type:

GES.TextVAlign

Default Value:

GES.TextVAlign.BASELINE

Flags:

READABLE, WRITABLE, CONSTRUCT

Vertical alignent of the text

Deprecated since version 1.6: use #ges_timeline_element_set_children_properties or #ges_timeline_element_get_children_properties instead. See GES.TitleSource for more information about exposed properties

GES.TitleClip.props.xpos
Name:

xpos

Type:

float

Default Value:

0.5

Flags:

READABLE, WRITABLE, CONSTRUCT

The horizontal position of the text

Deprecated since version 1.6: use #ges_timeline_element_set_children_properties or #ges_timeline_element_get_children_properties instead. See GES.TitleSource for more information about exposed properties

GES.TitleClip.props.ypos
Name:

ypos

Type:

float

Default Value:

0.5

Flags:

READABLE, WRITABLE, CONSTRUCT

The vertical position of the text

Deprecated since version 1.6: use #ges_timeline_element_set_children_properties or #ges_timeline_element_get_children_properties instead. See GES.TitleSource for more information about exposed properties