Trait gstreamer::prelude::GstObjectExt [−][src]
pub trait GstObjectExt: 'static {}Show methods
fn add_control_binding<P: IsA<ControlBinding>>(
&self,
binding: &P
) -> Result<(), BoolError>; fn default_error(&self, error: &Error, debug: Option<&str>); fn control_binding(&self, property_name: &str) -> Option<ControlBinding>; fn control_rate(&self) -> Option<ClockTime>; fn name(&self) -> GString; fn parent(&self) -> Option<Object>; fn path_string(&self) -> GString; fn value(
&self,
property_name: &str,
timestamp: impl Into<Option<ClockTime>>
) -> Option<Value>; fn has_active_control_bindings(&self) -> bool; fn has_ancestor<P: IsA<Object>>(&self, ancestor: &P) -> bool; fn has_as_ancestor<P: IsA<Object>>(&self, ancestor: &P) -> bool; fn has_as_parent<P: IsA<Object>>(&self, parent: &P) -> bool; fn remove_control_binding<P: IsA<ControlBinding>>(
&self,
binding: &P
) -> bool; fn set_control_binding_disabled(&self, property_name: &str, disabled: bool); fn set_control_bindings_disabled(&self, disabled: bool); fn set_control_rate(&self, control_rate: impl Into<Option<ClockTime>>); fn set_parent<P: IsA<Object>>(&self, parent: &P) -> Result<(), BoolError>; fn suggest_next_sync(&self) -> Option<ClockTime>; fn sync_values(&self, timestamp: ClockTime) -> Result<(), BoolError>; fn unparent(&self); fn connect_parent_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId;
Expand description
Trait containing all Object
methods.
Implementors
Allocator
, BufferPool
, Bus
, Clock
, ControlBinding
, ControlSource
, DeviceMonitor
, DeviceProvider
, Device
, Element
, Object
, PadTemplate
, Pad
, PluginFeature
, Plugin
, Registry
, StreamCollection
, Stream
Required methods
fn add_control_binding<P: IsA<ControlBinding>>(
&self,
binding: &P
) -> Result<(), BoolError>
[src]
fn add_control_binding<P: IsA<ControlBinding>>(
&self,
binding: &P
) -> Result<(), BoolError>
[src]Attach the ControlBinding
to the object. If there already was a
ControlBinding
for this property it will be replaced.
The object’s reference count will be incremented, and any floating
reference will be removed (see gst_object_ref_sink()
)
binding
the ControlBinding
that should be used
Returns
false
if the given binding
has not been setup for this object or
has been setup for a non suitable property, true
otherwise.
fn default_error(&self, error: &Error, debug: Option<&str>)
[src]
fn default_error(&self, error: &Error, debug: Option<&str>)
[src]fn control_binding(&self, property_name: &str) -> Option<ControlBinding>
[src]
fn control_binding(&self, property_name: &str) -> Option<ControlBinding>
[src]Gets the corresponding ControlBinding
for the property. This should be
unreferenced again after use.
property_name
name of the property
Returns
the ControlBinding
for
property_name
or None
if the property is not controlled.
fn control_rate(&self) -> Option<ClockTime>
[src]
fn control_rate(&self) -> Option<ClockTime>
[src]Obtain the control-rate for this self
. Audio processing Element
objects will use this rate to sub-divide their processing loop and call
sync_values()
in between. The length of the processing segment
should be up to control
-rate nanoseconds.
If the self
is not under property control, this will return
GST_CLOCK_TIME_NONE
. This allows the element to avoid the sub-dividing.
The control-rate is not expected to change if the element is in
State::Paused
or State::Playing
.
Returns
the control rate in nanoseconds
fn path_string(&self) -> GString
[src]
fn path_string(&self) -> GString
[src]Gets the value for the given controlled property at the requested time.
property_name
the name of the property to get
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 has_active_control_bindings(&self) -> bool
[src]fn remove_control_binding<P: IsA<ControlBinding>>(&self, binding: &P) -> bool
[src]fn set_control_binding_disabled(&self, property_name: &str, disabled: bool)
[src]fn set_control_bindings_disabled(&self, disabled: bool)
[src]fn set_control_rate(&self, control_rate: impl Into<Option<ClockTime>>)
[src]fn suggest_next_sync(&self) -> Option<ClockTime>
[src]fn connect_parent_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]