Trait gstreamer::prelude::ControlBindingExt [−][src]
pub trait ControlBindingExt: 'static { fn value(&self, timestamp: ClockTime) -> Option<Value>; fn is_disabled(&self) -> bool; fn set_disabled(&self, disabled: bool); fn sync_values<P: IsA<Object>>(
&self,
object: &P,
timestamp: ClockTime,
last_sync: ClockTime
) -> bool; fn object(&self) -> Option<Object>; }
Required methods
fn value(&self, timestamp: ClockTime) -> Option<Value>
[src]
Gets the value for the given controlled property at the requested time.
timestamp
the time the control-change should be read from
Returns
the GValue of the property at the given time,
or None
if the property isn’t controlled.
fn is_disabled(&self) -> bool
[src]
fn set_disabled(&self, disabled: bool)
[src]
This function is used to disable a control binding for some time, i.e.
crate::prelude::GstObjectExt::sync_values()
will do nothing.
disabled
boolean that specifies whether to disable the controller or not.
fn sync_values<P: IsA<Object>>(
&self,
object: &P,
timestamp: ClockTime,
last_sync: ClockTime
) -> bool
[src]
&self,
object: &P,
timestamp: ClockTime,
last_sync: ClockTime
) -> bool
Sets the property of the object
, according to the GstControlSources
that
handle them and for the given timestamp.
If this function fails, it is most likely the application developers fault. Most probably the control sources are not setup correctly.
object
the object that has controlled properties
timestamp
the time that should be processed
last_sync
the last time this was called
Returns
true
if the controller value could be applied to the object
property, false
otherwise
fn object(&self) -> Option<Object>
[src]
Implementors
impl<O: IsA<ControlBinding>> ControlBindingExt for O
[src]
impl<O: IsA<ControlBinding>> ControlBindingExt for O
[src]