ChildProxyT

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_get() and gst_child_proxy_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

addOnChildAdded
void addOnChildAdded(void delegate(ObjectG, string, ChildProxyIF) dlg, ConnectFlags connectFlags)

Will be emitted after the @object was added to the @child_proxy.

addOnChildRemoved
void addOnChildRemoved(void delegate(ObjectG, string, ChildProxyIF) dlg, ConnectFlags connectFlags)

Will be emitted after the @object was removed from the @child_proxy.

childAdded
void childAdded(ObjectG child, string name)

Emits the "child-added" signal.

childGetProperty
void childGetProperty(string name, Value value)

Gets a single property using the GstChildProxy mechanism. You are responsible for freeing it by calling g_value_unset()

childGetValist
void childGetValist(string firstPropertyName, void* varArgs)

Gets properties of the parent object and its children.

childRemoved
void childRemoved(ObjectG child, string name)

Emits the "child-removed" signal.

childSetProperty
void childSetProperty(string name, Value value)

Sets a single property using the GstChildProxy mechanism.

childSetValist
void childSetValist(string firstPropertyName, void* varArgs)

Sets properties of the parent object and its children.

getChildByIndex
ObjectG getChildByIndex(uint index)

Fetches a child by its number.

getChildByName
ObjectG getChildByName(string name)

Looks up a child element by the given name.

getChildProxyStruct
GstChildProxy* getChildProxyStruct()

Get the main Gtk struct

getChildrenCount
uint getChildrenCount()

Gets the number of child objects this parent contains.

lookup
bool lookup(string name, ObjectG target, ParamSpec pspec)

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

Properties

onChildAddedListeners
void delegate(ObjectG, string, ChildProxyIF)[] onChildAddedListeners [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
onChildRemovedListeners
void delegate(ObjectG, string, ChildProxyIF)[] onChildRemovedListeners [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

callBackChildAdded
void callBackChildAdded(GstChildProxy* childproxyStruct, GObject* object, char* name, ChildProxyIF _childproxy)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackChildRemoved
void callBackChildRemoved(GstChildProxy* childproxyStruct, GObject* object, char* name, ChildProxyIF _childproxy)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_onChildAddedListeners
void delegate(ObjectG, string, ChildProxyIF)[] _onChildAddedListeners;
Undocumented in source.
_onChildRemovedListeners
void delegate(ObjectG, string, ChildProxyIF)[] _onChildRemovedListeners;
Undocumented in source.
connectedSignals
int[string] connectedSignals;
Undocumented in source.

Meta