Class Device
- Namespace
- Gst
- Assembly
- Gst-1.0.dll
public class Device : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
Device
- Implements
- Inherited Members
Constructors
Device(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 Device(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
Device(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Device(CreationData data)
Parameters
dataCreationData
Device(DeviceHandle)
protected Device(DeviceHandle handle)
Parameters
handleDeviceHandle
Fields
CapsPropertyDefinition
public static readonly Property<Caps, Device> CapsPropertyDefinition
Field Value
DeviceClassPropertyDefinition
public static readonly Property<string?, Device> DeviceClassPropertyDefinition
Field Value
DisplayNamePropertyDefinition
public static readonly Property<string?, Device> DisplayNamePropertyDefinition
Field Value
PropertiesPropertyDefinition
public static readonly Property<Structure, Device> PropertiesPropertyDefinition
Field Value
RemovedSignal
Signal Descriptor for OnRemoved.
public static readonly Signal<Device> RemovedSignal
Field Value
Properties
Caps
public Caps Caps { get; }
Property Value
DeviceClass
public string? DeviceClass { get; }
Property Value
DisplayName
public string? DisplayName { get; }
Property Value
Properties
public Structure Properties { get; }
Property Value
Methods
CreateElement(string?)
[Version("1.4")]
public Element? CreateElement(string? name)
Parameters
namestring
Returns
GetCaps()
[Version("1.4")]
public Caps? GetCaps()
Returns
GetDeviceClass()
[Version("1.4")]
public string GetDeviceClass()
Returns
GetDisplayName()
[Version("1.4")]
public string GetDisplayName()
Returns
GetGType()
public static Type GetGType()
Returns
GetProperties()
[Version("1.6")]
public Structure? GetProperties()
Returns
HasClasses(string)
[Version("1.4")]
public bool HasClasses(string classes)
Parameters
classesstring
Returns
HasClassesv(string[])
[Version("1.4")]
public bool HasClassesv(string[] classes)
Parameters
classesstring[]
Returns
NewFromPointer(nint, bool)
Creates a new managed Device instance for a given pointer.
public static Device NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new Device and sets the properties specified by the construct arguments.
public static Device NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
ReconfigureElement(Element)
[Version("1.4")]
public bool ReconfigureElement(Element element)
Parameters
elementElement
Returns
Events
OnRemoved
public event SignalHandler<Device> OnRemoved