gstreamer_editing_services::prelude

Trait TextOverlayExt

Source
pub trait TextOverlayExt: IsA<TextOverlay> + 'static {
Show 14 methods // Provided methods fn color(&self) -> u32 { ... } fn font_desc(&self) -> Option<GString> { ... } fn halignment(&self) -> TextHAlign { ... } fn text(&self) -> Option<GString> { ... } fn valignment(&self) -> TextVAlign { ... } fn xpos(&self) -> f64 { ... } fn ypos(&self) -> f64 { ... } fn set_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_valignment(&self, valign: TextVAlign) { ... } fn set_xpos(&self, position: f64) { ... } fn set_ypos(&self, position: f64) { ... }
}
Expand description

Trait containing all TextOverlay methods.

§Implementors

TextOverlay

Provided Methods§

Source

fn color(&self) -> u32

Get the color used by source.

§Returns

The color used by source.

Source

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

Get the pango font description currently set on source.

§Returns

The pango font description currently set on source.

Source

fn halignment(&self) -> TextHAlign

Get the horizontal aligment used by source.

§Returns

The horizontal aligment used by source.

Source

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

Get the text currently set on source.

§Returns

The text currently set on source.

Source

fn valignment(&self) -> TextVAlign

Get the vertical aligment used by source.

§Returns

The vertical aligment used by source.

Source

fn xpos(&self) -> f64

Get the horizontal position used by source.

§Returns

The horizontal position used by source.

Source

fn ypos(&self) -> f64

Get the vertical position used by source.

§Returns

The vertical position used by source.

Source

fn set_color(&self, color: u32)

Sets the color of the text.

§color

The color self is being set to

Source

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

Sets the pango font description of the text this track element will render.

§font_desc

the pango font description

Source

fn set_halignment(&self, halign: TextHAlign)

Sets the horizontal aligment of the text.

§halign

The TextHAlign defining the horizontal alignment of the text render by self.

Source

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

Sets the text this track element will render.

§text

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

Source

fn set_valignment(&self, valign: TextVAlign)

Sets the vertical aligment of the text.

§valign

The TextVAlign defining the vertical alignment of the text render by self.

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 vertical position 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§