ChildProxy

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.

Members

Functions

childAdded
void childAdded(gobject.object.ObjectG child, string name)

Emits the #GstChildProxy::child-added signal.

childRemoved
void childRemoved(gobject.object.ObjectG child, string name)

Emits the #GstChildProxy::child-removed signal.

connectChildAdded
ulong connectChildAdded(T callback, Flag!"After" after)

Connect to ChildAdded signal.

connectChildRemoved
ulong connectChildRemoved(T callback, Flag!"After" after)

Connect to ChildRemoved signal.

getChildByIndex
gobject.object.ObjectG getChildByIndex(uint index)

Fetches a child by its number.

getChildByName
gobject.object.ObjectG getChildByName(string name)

Looks up a child element by the given name.

getChildByNameRecurse
gobject.object.ObjectG getChildByNameRecurse(string name)

Looks up a child element by the given full-path name.

getChildProxyProperty
void getChildProxyProperty(string name, gobject.value.Value value)

Gets a single property using the GstChildProxy mechanism. You are responsible for freeing it by calling gobject.value.Value.unset

getChildrenCount
uint getChildrenCount()

Gets the number of child objects this parent contains.

lookup
bool lookup(string name, gobject.object.ObjectG target, gobject.param_spec.ParamSpec pspec)

Looks up which object and #GParamSpec would be effected by the given name.

setProperty
void setProperty(string name, gobject.value.Value value)

Sets a single property using the GstChildProxy mechanism.