[−][src]Trait gstreamer_base::prelude::ChildProxyExt
Required methods
fn child_added<P>(&self, child: &P, name: &str) where
P: IsA<Object>,
P: IsA<Object>,
fn child_removed<P>(&self, child: &P, name: &str) where
P: IsA<Object>,
P: IsA<Object>,
fn get_child_by_index(&self, index: u32) -> Option<Object>
Fetches a child by its number.
index
the child's position in the child list
Returns
the child object or None
if
not found (index too high). Unref after usage.
MT safe.
fn get_child_by_name(&self, name: &str) -> Option<Object>
Looks up a child element by the given name.
This virtual method has a default implementation that uses Object
together with GstObjectExt::get_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. Unref after usage.
MT safe.
fn get_children_count(&self) -> u32
fn connect_child_added<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&Self, &Object, &str),
F: 'static + Send + Sync + Fn(&Self, &Object, &str),
Will be emitted after the object
was added to the child_proxy
.
object
the gobject::Object
that was added
name
the name of the new child
fn connect_child_removed<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&Self, &Object, &str),
F: 'static + Send + Sync + Fn(&Self, &Object, &str),
Implementors
impl<O> ChildProxyExt for O where
O: IsA<ChildProxy>,
[src]
O: IsA<ChildProxy>,
fn child_added<P>(&self, child: &P, name: &str) where
P: IsA<Object>,
[src]
P: IsA<Object>,
fn child_removed<P>(&self, child: &P, name: &str) where
P: IsA<Object>,
[src]
P: IsA<Object>,
fn get_child_by_index(&self, index: u32) -> Option<Object>
[src]
fn get_child_by_name(&self, name: &str) -> Option<Object>
[src]
fn get_children_count(&self) -> u32
[src]
fn connect_child_added<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&O, &Object, &str),
[src]
F: 'static + Send + Sync + Fn(&O, &Object, &str),
fn connect_child_removed<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&O, &Object, &str),
[src]
F: 'static + Send + Sync + Fn(&O, &Object, &str),