pub trait TimedValueControlSourceExt: IsA<TimedValueControlSource> + 'static {
// Provided methods
fn count(&self) -> i32 { ... }
fn set(&self, timestamp: ClockTime, value: f64) -> bool { ... }
fn unset(&self, timestamp: ClockTime) -> bool { ... }
fn unset_all(&self) { ... }
fn connect_value_added<F: Fn(&Self, &ControlPoint) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_value_changed<F: Fn(&Self, &ControlPoint) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_value_removed<F: Fn(&Self, &ControlPoint) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}
Expand description
Trait containing all TimedValueControlSource
methods.
§Implementors
InterpolationControlSource
, TimedValueControlSource
, TriggerControlSource
Provided Methods§
Sourcefn unset_all(&self)
fn unset_all(&self)
Used to remove all time-stamped values of given controller-handled property
Sourcefn connect_value_added<F: Fn(&Self, &ControlPoint) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_value_added<F: Fn(&Self, &ControlPoint) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
Emitted right after the new value has been added to self_
§timed_value
The newly added GstTimedValue
Sourcefn connect_value_changed<F: Fn(&Self, &ControlPoint) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_value_changed<F: Fn(&Self, &ControlPoint) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
Emitted right after the new value has been set on timed_signals
§timed_value
The GstTimedValue
where the value changed
Sourcefn connect_value_removed<F: Fn(&Self, &ControlPoint) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_value_removed<F: Fn(&Self, &ControlPoint) + Send + Sync + '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.