Table of Contents

Class ElementFactory

Namespace
Gst
Assembly
Gst-1.0.dll
public class ElementFactory : PluginFeature, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
ElementFactory
Implements
Inherited Members

Constructors

ElementFactory(params ConstructArgument[])

[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public ElementFactory(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

ElementFactory(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected ElementFactory(CreationData data)

Parameters

data CreationData

ElementFactory(ElementFactoryHandle)

protected ElementFactory(ElementFactoryHandle handle)

Parameters

handle ElementFactoryHandle

Methods

CanSinkAllCaps(Caps)

public bool CanSinkAllCaps(Caps caps)

Parameters

caps Caps

Returns

bool

CanSinkAnyCaps(Caps)

public bool CanSinkAnyCaps(Caps caps)

Parameters

caps Caps

Returns

bool

CanSrcAllCaps(Caps)

public bool CanSrcAllCaps(Caps caps)

Parameters

caps Caps

Returns

bool

CanSrcAnyCaps(Caps)

public bool CanSrcAnyCaps(Caps caps)

Parameters

caps Caps

Returns

bool

Create(string?)

public Element? Create(string? name)

Parameters

name string

Returns

Element

CreateValist(string?, nint)

[Version("1.20")]
public Element? CreateValist(string? first, nint properties)

Parameters

first string
properties nint

Returns

Element

CreateWithProperties(string[]?, Value[]?)

[Version("1.20")]
public Element? CreateWithProperties(string[]? names, Value[]? values)

Parameters

names string[]
values Value[]

Returns

Element

Find(string)

public static ElementFactory? Find(string name)

Parameters

name string

Returns

ElementFactory

GetElementType()

public Type GetElementType()

Returns

Type

GetGType()

public static Type GetGType()

Returns

Type

GetMetadata(string)

public string? GetMetadata(string key)

Parameters

key string

Returns

string

GetMetadataKeys()

public string[]? GetMetadataKeys()

Returns

string[]

GetNumPadTemplates()

public uint GetNumPadTemplates()

Returns

uint

GetSkipDocumentation()

[Version("1.20")]
public bool GetSkipDocumentation()

Returns

bool

GetStaticPadTemplates()

public List GetStaticPadTemplates()

Returns

List

GetUriProtocols()

public string[] GetUriProtocols()

Returns

string[]

GetUriType()

public URIType GetUriType()

Returns

URIType

HasInterface(string)

public bool HasInterface(string interfacename)

Parameters

interfacename string

Returns

bool

ListFilter(List, Caps, PadDirection, bool)

public static List ListFilter(List list, Caps caps, PadDirection direction, bool subsetonly)

Parameters

list List
caps Caps
direction PadDirection
subsetonly bool

Returns

List

ListGetElements(ElementFactoryListType, Rank)

public static List ListGetElements(ElementFactoryListType type, Rank minrank)

Parameters

type ElementFactoryListType
minrank Rank

Returns

List

ListIsType(ElementFactoryListType)

public bool ListIsType(ElementFactoryListType type)

Parameters

type ElementFactoryListType

Returns

bool

Make(string, string?)

public static Element? Make(string factoryname, string? name)

Parameters

factoryname string
name string

Returns

Element

MakeValist(string, string?, nint)

[Version("1.20")]
public static Element? MakeValist(string factoryname, string? first, nint properties)

Parameters

factoryname string
first string
properties nint

Returns

Element

MakeWithProperties(string, string[]?, Value[]?)

[Version("1.20")]
public static Element? MakeWithProperties(string factoryname, string[]? names, Value[]? values)

Parameters

factoryname string
names string[]
values Value[]

Returns

Element

NewFromPointer(nint, bool)

Creates a new managed ElementFactory instance for a given pointer.

public static ElementFactory NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

ElementFactory

NewWithProperties(ConstructArgument[])

Creates a new ElementFactory and sets the properties specified by the construct arguments.

public static ElementFactory NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

ElementFactory