gstreamer_editing_services::prelude

Trait TitleSourceExt

Source
pub trait TitleSourceExt: IsA<TitleSource> + '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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§