gst.child_proxy
Module for [ChildProxy] interface
Types 2
interfaceChildProxy
This interface abstracts handling of property sets for elements with children. Imagine elements such as mixers or polyphonic generators. They all have multiple #GstPad or some kind of voice objects. Another use case are container elements like #GstBin. The element implementing the interface acts as a parent for those child objects.
By implementing this interface the child properties can be accessed from the parent element by using [gst.child_proxy.ChildProxy.get] and [gst.child_proxy.ChildProxy.set].
Property names are written as child-name::property-name. The whole naming scheme is recursive. Thus child1::child2::property is valid too, if child1 and child2 implement the #GstChildProxy interface.
Methods
void childAdded(gobject.object.ObjectWrap child, string name)Emits the #GstChildProxy::child-added signal.void childRemoved(gobject.object.ObjectWrap child, string name)Emits the #GstChildProxy::child-removed signal.gobject.object.ObjectWrap getChildByIndex(uint index)Fetches a child by its number.gobject.object.ObjectWrap getChildByName(string name)Looks up a child element by the given name.gobject.object.ObjectWrap getChildByNameRecurse(string name)Looks up a child element by the given full-path name.uint getChildrenCount()Gets the number of child objects this parent contains. Returns: the number of child objectsvoid getChildProxyProperty(string name, out gobject.value.Value value)Gets a single property using the GstChildProxy mechanism. You are responsible for freeing it by calling [gobject.value.Value.unset]bool lookup(string name, out gobject.object.ObjectWrap target, out gobject.param_spec.ParamSpec pspec)Looks up which object and #GParamSpec would be effected by the given name.void setProperty(string name, gobject.value.Value value)Sets a single property using the GstChildProxy mechanism.gulong connectChildAdded(T)(T callback, Flag!"After" after = No.After)Connect to `ChildAdded` signal.gulong connectChildRemoved(T)(T callback, Flag!"After" after = No.After)Connect to `ChildRemoved` signal.interfaceChildProxyGidBuilderImpl(T)