Interface

Gst-1.0GstChildProxyInterface

Interface for implementing ChildProxy. Contains only the virtual methods that need to be implemented.

interface Interface {
    vfunc_child_added(child: GObject.Object, name: string): void;
    vfunc_child_removed(child: GObject.Object, name: string): void;
    vfunc_get_child_by_index<T = GObject.Object>(index: number): T;
    vfunc_get_child_by_name<T = GObject.Object>(name: string): T;
    vfunc_get_children_count(): number;
}

Hierarchy (View Summary)

Index

Methods

  • Emits the Gst.ChildProxy.SignalSignatures.child_added | Gst.ChildProxy::child-added signal.

    Parameters

    • child: GObject.Object

      the newly added child

    • name: string

      the name of the new child

    Returns void

  • Emits the Gst.ChildProxy.SignalSignatures.child_removed | Gst.ChildProxy::child-removed signal.

    Parameters

    • child: GObject.Object

      the removed child

    • name: string

      the name of the old child

    Returns void

  • Looks up a child element by the given name.

    This virtual method has a default implementation that uses Gst.Object together with gst_object_get_name(). If the interface is to be used with GObjects, this methods needs to be overridden.

    Type Parameters

    Parameters

    • name: string

      the child's name

    Returns T

  • Gets the number of child objects this parent contains.

    Returns number