Trait gstreamer::prelude::ControlBindingExt
source · pub trait ControlBindingExt:
IsA<ControlBinding>
+ Sealed
+ 'static {
// Provided methods
fn value(&self, timestamp: ClockTime) -> Option<Value> { ... }
fn is_disabled(&self) -> bool { ... }
fn set_disabled(&self, disabled: bool) { ... }
fn sync_values(
&self,
object: &impl IsA<Object>,
timestamp: ClockTime,
last_sync: impl Into<Option<ClockTime>>,
) -> bool { ... }
fn object(&self) -> Option<Object> { ... }
}
Expand description
Provided Methods§
sourcefn is_disabled(&self) -> bool
fn is_disabled(&self) -> bool
sourcefn set_disabled(&self, disabled: bool)
fn set_disabled(&self, disabled: bool)
This function is used to disable a control binding for some time, i.e.
GstObjectExt::sync_values()
will do nothing.
§disabled
boolean that specifies whether to disable the controller or not.
sourcefn sync_values(
&self,
object: &impl IsA<Object>,
timestamp: ClockTime,
last_sync: impl Into<Option<ClockTime>>,
) -> bool
fn sync_values( &self, object: &impl IsA<Object>, timestamp: ClockTime, last_sync: impl Into<Option<ClockTime>>, ) -> bool
Sets the property of the object
, according to the GstControlSources
that
handles it 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>
Object Safety§
This trait is not object safe.