Trait gstreamer::prelude::ChildProxyExt [−][src]
pub trait ChildProxyExt: 'static { fn child_added<P: IsA<Object>>(&self, child: &P, name: &str); fn child_removed<P: IsA<Object>>(&self, child: &P, name: &str); fn child_by_index(&self, index: u32) -> Option<Object>; fn child_by_name(&self, name: &str) -> Option<Object>; fn children_count(&self) -> u32; fn connect_child_added<F: Fn(&Self, &Object, &str) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_child_removed<F: Fn(&Self, &Object, &str) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId; }
Expand description
Required methods
fn child_by_index(&self, index: u32) -> Option<Object>
[src]
fn child_by_index(&self, index: u32) -> Option<Object>
[src]fn child_by_name(&self, name: &str) -> Option<Object>
[src]
fn child_by_name(&self, name: &str) -> Option<Object>
[src]Looks up a child element by the given name.
This virtual method has a default implementation that uses Object
together with GstObjectExt::name()
. If the interface is to be used with
GObjects
, this methods needs to be overridden.
name
the child’s name
Returns
the child object or None
if
not found.
fn children_count(&self) -> u32
[src]
fn children_count(&self) -> u32
[src]fn connect_child_added<F: Fn(&Self, &Object, &str) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
fn connect_child_added<F: Fn(&Self, &Object, &str) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]Will be emitted after the object
was added to the child_proxy
.
object
the glib::Object
that was added
name
the name of the new child
fn connect_child_removed<F: Fn(&Self, &Object, &str) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
fn connect_child_removed<F: Fn(&Self, &Object, &str) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]Will be emitted after the object
was removed from the child_proxy
.
object
the glib::Object
that was removed
name
the name of the old child
Implementors
fn connect_child_added<F: Fn(&Self, &Object, &str) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]fn connect_child_removed<F: Fn(&Self, &Object, &str) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]