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 { ... }
}
Provided Methods§
sourcefn volume(&self) -> f64
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
.
sourcefn vpattern(&self) -> VideoTestPattern
fn vpattern(&self) -> VideoTestPattern
Get the VideoTestPattern
which is applied on self
.
§Returns
The VideoTestPattern
which is applied on self
.
sourcefn is_muted(&self) -> bool
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.
sourcefn set_frequency(&self, freq: f64)
fn set_frequency(&self, freq: f64)
Sets the frequency to generate. See audiotestsrc element.
§freq
the frequency you want to use on self
sourcefn set_volume(&self, volume: f64)
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
sourcefn set_vpattern(&self, vpattern: VideoTestPattern)
fn set_vpattern(&self, vpattern: VideoTestPattern)
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
Object Safety§
This trait is not object safe.