Trait gstreamer_controller::prelude::TimedValueControlSourceExt[][src]

pub trait TimedValueControlSourceExt: 'static {
    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; }

Trait containing all TimedValueControlSource methods.

Implementors

crate::InterpolationControlSource, crate::TimedValueControlSource, crate::TriggerControlSource

Required methods

fn count(&self) -> i32[src]

Get the number of control points that are set.

Returns

the number of control points that are set.

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

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.

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

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.

fn unset_all(&self)[src]

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

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

Emitted right after the new value has been added to self_

timed_value

The newly added [crate::gst::TimedValue]

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

Emitted right after the new value has been set on timed_signals

timed_value

The [crate::gst::TimedValue] where the value changed

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

Emitted when timed_value is removed from self_

timed_value

The removed [crate::gst::TimedValue]

Loading content...

Implementors

impl<O: IsA<TimedValueControlSource>> TimedValueControlSourceExt for O[src]

fn count(&self) -> i32[src]

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

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

fn unset_all(&self)[src]

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

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

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

Loading content...