Package ch.bailu.gtk.gst
Klasse ChildProxy
- Alle implementierten Schnittstellen:
PointerInterface
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.
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.
https://gstreamer.freedesktop.org/documentation/gstreamer/gi-index.html
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic interface
static interface
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Feldübersicht
FelderVon Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
childAdded
(Object child, Str name) Emits the #GstChildProxy::child-added signal.void
childAdded
(Object child, String name) Emits the #GstChildProxy::child-added signal.void
childRemoved
(Object child, Str name) Emits the #GstChildProxy::child-removed signal.void
childRemoved
(Object child, String name) Emits the #GstChildProxy::child-removed signal.void
Gets properties of the parent object and its children.void
Gets properties of the parent object and its children.getChildByIndex
(int index) Fetches a child by its number.getChildByName
(Str name) Looks up a child element by the given name.getChildByName
(String name) Looks up a child element by the given name.getChildByNameRecurse
(Str name) Looks up a child element by the given full-path name.getChildByNameRecurse
(String name) Looks up a child element by the given full-path name.int
Gets the number of child objects this parent contains.static ClassHandler
static int
static long
static TypeSystem.TypeSize
void
getProperty
(Str name, Value value) Gets a single property using the GstChildProxy mechanism.void
getProperty
(String name, Value value) Gets a single property using the GstChildProxy mechanism.static long
static TypeSystem.TypeSize
onChildAdded
(ChildProxy.OnChildAdded signal) Connect to signal "child-added".Connect to signal "child-removed".void
Sets properties of the parent object and its children.void
Sets properties of the parent object and its children.void
setProperty
(Str name, Value value) Sets a single property using the GstChildProxy mechanism.void
setProperty
(String name, Value value) Sets a single property using the GstChildProxy mechanism.Von Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrProperty
Von Klasse geerbte Methoden ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, getData, getData, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, setData, setData, setDataFull, setDataFull, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Felddetails
-
Konstruktordetails
-
Methodendetails
-
getClassHandler
-
childAdded
Emits the #GstChildProxy::child-added signal.- Parameter:
child
- the newly added childname
- the name of the new child
-
childAdded
Emits the #GstChildProxy::child-added signal.- Parameter:
child
- the newly added childname
- the name of the new child
-
childRemoved
Emits the #GstChildProxy::child-removed signal.- Parameter:
child
- the removed childname
- the name of the old child
-
childRemoved
Emits the #GstChildProxy::child-removed signal.- Parameter:
child
- the removed childname
- the name of the old child
-
get
Gets properties of the parent object and its children. -
get
Gets properties of the parent object and its children. -
getChildByIndex
Fetches a child by its number.- Parameter:
index
- the child's position in the child list- Gibt zurück:
- the child object or %NULL if not found (index too high).
-
getChildByName
Looks up a child element by the given name.
This virtual method has a default implementation that uses #GstObject
together with gst_object_get_name(). If the interface is to be used with
#GObjects, this methods needs to be overridden.- Parameter:
name
- the child's name- Gibt zurück:
- the child object or %NULL if not found.
-
getChildByName
Looks up a child element by the given name.
This virtual method has a default implementation that uses #GstObject
together with gst_object_get_name(). If the interface is to be used with
#GObjects, this methods needs to be overridden.- Parameter:
name
- the child's name- Gibt zurück:
- the child object or %NULL if not found.
-
getChildByNameRecurse
Looks up a child element by the given full-path name.
Similar to gst_child_proxy_get_child_by_name(), this method
searches and returns a child given a name. The difference is that
this method allows a hierarchical path in the form of
child1::child2::child3. In the later example this method would
return a reference to child3, if found. The name should be made of
element names only and should not contain any property names.- Parameter:
name
- the full-path child's name- Gibt zurück:
- the child object or %NULL if not found.
-
getChildByNameRecurse
Looks up a child element by the given full-path name.
Similar to gst_child_proxy_get_child_by_name(), this method
searches and returns a child given a name. The difference is that
this method allows a hierarchical path in the form of
child1::child2::child3. In the later example this method would
return a reference to child3, if found. The name should be made of
element names only and should not contain any property names.- Parameter:
name
- the full-path child's name- Gibt zurück:
- the child object or %NULL if not found.
-
getChildrenCount
public int getChildrenCount()Gets the number of child objects this parent contains.- Gibt zurück:
- the number of child objects
-
getProperty
Gets a single property using the GstChildProxy mechanism.
You are responsible for freeing it by calling g_value_unset()- Setzt außer Kraft:
getProperty
in KlasseObject
- Parameter:
name
- name of the propertyvalue
- a #GValue that should take the result.
-
getProperty
Gets a single property using the GstChildProxy mechanism.
You are responsible for freeing it by calling g_value_unset()- Setzt außer Kraft:
getProperty
in KlasseObject
- Parameter:
name
- name of the propertyvalue
- a #GValue that should take the result.
-
set
Sets properties of the parent object and its children. -
set
Sets properties of the parent object and its children. -
setProperty
Sets a single property using the GstChildProxy mechanism.- Setzt außer Kraft:
setProperty
in KlasseObject
- Parameter:
name
- name of the property to setvalue
- new #GValue for the property
-
setProperty
Sets a single property using the GstChildProxy mechanism.- Setzt außer Kraft:
setProperty
in KlasseObject
- Parameter:
name
- name of the property to setvalue
- new #GValue for the property
-
onChildAdded
Connect to signal "child-added".
SeeChildProxy.OnChildAdded.onChildAdded(ch.bailu.gtk.gobject.Object, ch.bailu.gtk.type.Str)
for signal description.
FieldSIGNAL_ON_CHILD_ADDED
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onChildRemoved
Connect to signal "child-removed".
SeeChildProxy.OnChildRemoved.onChildRemoved(ch.bailu.gtk.gobject.Object, ch.bailu.gtk.type.Str)
for signal description.
FieldSIGNAL_ON_CHILD_REMOVED
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-