pub trait TitleSourceExt: 'static {
Show 16 methods fn background_color(&self) -> u32;
fn font_desc(&self) -> Option<GString>;
fn halignment(&self) -> TextHAlign;
fn text(&self) -> Option<GString>;
fn text_color(&self) -> u32;
fn valignment(&self) -> TextVAlign;
fn xpos(&self) -> f64;
fn ypos(&self) -> f64;
fn set_background_color(&self, color: u32);
fn set_font_desc(&self, font_desc: &str);
fn set_halignment(&self, halign: TextHAlign);
fn set_text(&self, text: &str);
fn set_text_color(&self, color: u32);
fn set_valignment(&self, valign: TextVAlign);
fn set_xpos(&self, position: f64);
fn set_ypos(&self, position: f64);
}
Expand description

Trait containing all TitleSource methods.

Implementors

TitleSource

Required methods

Get the background used by self.

Returns

The background used by self.

👎 Deprecated:

Since 1.16

Get the pango font description used by self.

Deprecated since 1.16

Use ges_timeline_element_get_child_property instead (this actually returns a newly allocated string)

Returns

The pango font description used by this self.

Get the horizontal aligment used by self.

Returns

The horizontal aligment used by self.

👎 Deprecated:

Since 1.16

Get the text currently set on the self.

Deprecated since 1.16

Use ges_timeline_element_get_child_property instead (this actually returns a newly allocated string)

Returns

The text currently set on the self.

Get the color used by self.

Returns

The color used by self.

Get the vertical aligment used by self.

Returns

The vertical aligment used by self.

Get the horizontal position used by self.

Returns

The horizontal position used by self.

Get the vertical position used by self.

Returns

The vertical position used by self.

Sets the color of the background

color

the color self is being set to

Set the pango font description this source will use to render the text.

font_desc

the pango font description

Sets the vertical aligment of the text.

halign

TextHAlign

Sets the text this track element will render.

Deprecated

use ges_track_element_get/set_children_properties on the GESTrackElement instead

text

the text to render. an internal copy of this text will be made.

Sets the color of the text.

color

the color self is being set to

Sets the vertical aligment of the text.

valign

TextVAlign

Sets the horizontal position of the text.

position

the horizontal position self is being set to

Sets the vertical position of the text.

position

the color self is being set to

Implementors