pub trait TitleSourceExt: IsA<TitleSource> + Sealed + 'static {
Show 16 methods // Provided 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: Option<&str>) { ... } fn set_halignment(&self, halign: TextHAlign) { ... } fn set_text(&self, text: Option<&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

Provided Methods§

source

fn background_color(&self) -> u32

Get the background used by self.

§Returns

The background used by self.

source

fn font_desc(&self) -> Option<GString>

👎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.

source

fn halignment(&self) -> TextHAlign

Get the horizontal aligment used by self.

§Returns

The horizontal aligment used by self.

source

fn text(&self) -> Option<GString>

👎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.

source

fn text_color(&self) -> u32

Get the color used by self.

§Returns

The color used by self.

source

fn valignment(&self) -> TextVAlign

Get the vertical aligment used by self.

§Returns

The vertical aligment used by self.

source

fn xpos(&self) -> f64

Get the horizontal position used by self.

§Returns

The horizontal position used by self.

source

fn ypos(&self) -> f64

Get the vertical position used by self.

§Returns

The vertical position used by self.

source

fn set_background_color(&self, color: u32)

Sets the color of the background

§color

the color self is being set to

source

fn set_font_desc(&self, font_desc: Option<&str>)

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

§font_desc

the pango font description

source

fn set_halignment(&self, halign: TextHAlign)

Sets the vertical aligment of the text.

§halign

TextHAlign

source

fn set_text(&self, text: Option<&str>)

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.

source

fn set_text_color(&self, color: u32)

Sets the color of the text.

§color

the color self is being set to

source

fn set_valignment(&self, valign: TextVAlign)

Sets the vertical aligment of the text.

§valign

TextVAlign

source

fn set_xpos(&self, position: f64)

Sets the horizontal position of the text.

§position

the horizontal position self is being set to

source

fn set_ypos(&self, position: f64)

Sets the vertical position of the text.

§position

the color self is being set to

Object Safety§

This trait is not object safe.

Implementors§