gstreamer_controller::prelude

Trait TimedValueControlSourceExt

Source
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

Provided Methods§

Source

fn count(&self) -> i32

Get the number of control points that are set.

§Returns

the number of control points that are set.

Source

fn set(&self, timestamp: ClockTime, value: f64) -> bool

Set the value of given controller-handled property at a certain time.

§timestamp

the time the control-change is scheduled for

§value

the control-value

§Returns

FALSE if the values couldn’t be set, TRUE otherwise.

Source

fn unset(&self, timestamp: ClockTime) -> bool

Used to remove the value of given controller-handled property at a certain time.

§timestamp

the time the control-change should be removed from

§Returns

FALSE if the value couldn’t be unset (i.e. not found, TRUE otherwise.

Source

fn unset_all(&self)

Used to remove all time-stamped values of given controller-handled property

Source

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

Source

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

Source

fn connect_value_removed<F: Fn(&Self, &ControlPoint) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

Emitted when timed_value is removed from self_

§timed_value

The removed GstTimedValue

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§