gstreamer_editing_services::prelude

Trait TestClipExt

Source
pub trait TestClipExt: IsA<TestClip> + 'static {
Show 14 methods // Provided methods fn frequency(&self) -> f64 { ... } fn volume(&self) -> f64 { ... } fn vpattern(&self) -> VideoTestPattern { ... } fn is_muted(&self) -> bool { ... } fn set_frequency(&self, freq: f64) { ... } fn set_mute(&self, mute: bool) { ... } fn set_volume(&self, volume: f64) { ... } fn set_vpattern(&self, vpattern: VideoTestPattern) { ... } fn freq(&self) -> f64 { ... } fn set_freq(&self, freq: f64) { ... } fn connect_freq_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_mute_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_volume_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_vpattern_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all TestClip methods.

§Implementors

TestClip

Provided Methods§

Source

fn frequency(&self) -> f64

Get the frequency self generates.

§Returns

The frequency self generates. See audiotestsrc element.

Source

fn volume(&self) -> f64

Get the volume of the test audio signal applied on self.

§Returns

The volume of the test audio signal applied on self.

Source

fn vpattern(&self) -> VideoTestPattern

Get the VideoTestPattern which is applied on self.

§Returns

The VideoTestPattern which is applied on self.

Source

fn is_muted(&self) -> bool

Let you know if the audio track of self is muted or not.

§Returns

Whether the audio track of self is muted or not.

Source

fn set_frequency(&self, freq: f64)

Sets the frequency to generate. See audiotestsrc element.

§freq

the frequency you want to use on self

Source

fn set_mute(&self, mute: bool)

Sets whether the audio track of this clip is muted or not.

§mute

true to mute the audio track, false to unmute it

Source

fn set_volume(&self, volume: f64)

Sets the volume of the test audio signal.

§volume

the volume of the audio signal you want to use on self

Source

fn set_vpattern(&self, vpattern: VideoTestPattern)

Sets which video pattern to display on self.

§vpattern

the VideoTestPattern to use on self

Source

fn freq(&self) -> f64

The frequency to generate for audio track elements.

Source

fn set_freq(&self, freq: f64)

The frequency to generate for audio track elements.

Source

fn connect_freq_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Source

fn connect_mute_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Source

fn connect_volume_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Source

fn connect_vpattern_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

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§