pub trait TestClipExt: IsA<TestClip> + Sealed + '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

Object Safety§

This trait is not object safe.

Implementors§