Class Structure
- Namespace
- Gst
- Assembly
- Gst-1.0.dll
public sealed class Structure : BoxedRecord, IEquatable<Structure>
- Inheritance
-
Structure
- Implements
- Inherited Members
Constructors
Structure()
public Structure()
Structure(StructureOwnedHandle)
public Structure(StructureOwnedHandle handle)
Parameters
handle
StructureOwnedHandle
Properties
Handle
public StructureOwnedHandle Handle { get; }
Property Value
Methods
CanIntersect(Structure)
public bool CanIntersect(Structure struct2)
Parameters
struct2
Structure
Returns
Copy()
public Structure Copy()
Returns
Equals(Structure?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Structure? other)
Parameters
other
StructureAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
FilterAndMapInPlace(StructureFilterMapFunc)
[Version("1.6")]
public void FilterAndMapInPlace(StructureFilterMapFunc func)
Parameters
Fixate()
public void Fixate()
FixateField(string)
public bool FixateField(string fieldName)
Parameters
fieldName
string
Returns
FixateFieldBoolean(string, bool)
public bool FixateFieldBoolean(string fieldName, bool target)
Parameters
Returns
FixateFieldNearestDouble(string, double)
public bool FixateFieldNearestDouble(string fieldName, double target)
Parameters
Returns
FixateFieldNearestFraction(string, int, int)
public bool FixateFieldNearestFraction(string fieldName, int targetNumerator, int targetDenominator)
Parameters
Returns
FixateFieldNearestInt(string, int)
public bool FixateFieldNearestInt(string fieldName, int target)
Parameters
Returns
FixateFieldString(string, string)
public bool FixateFieldString(string fieldName, string target)
Parameters
Returns
Foreach(StructureForeachFunc)
public bool Foreach(StructureForeachFunc func)
Parameters
func
StructureForeachFunc
Returns
Free()
public void Free()
FromString(string, out string)
public static Structure? FromString(string @string, out string end)
Parameters
Returns
GetBoolean(string, out bool)
public bool GetBoolean(string fieldname, out bool value)
Parameters
Returns
GetClockTime(string, out ClockTime)
public bool GetClockTime(string fieldname, out ClockTime value)
Parameters
Returns
GetDouble(string, out double)
public bool GetDouble(string fieldname, out double value)
Parameters
Returns
GetEnum(string, Type, out int)
public bool GetEnum(string fieldname, Type enumtype, out int value)
Parameters
Returns
GetFieldType(string)
public Type GetFieldType(string fieldname)
Parameters
fieldname
string
Returns
GetFlags(string, Type, out uint)
[Version("1.22")]
public bool GetFlags(string fieldname, Type flagsType, out uint value)
Parameters
Returns
GetFlagset(string, out uint, out uint)
[Version("1.6")]
public bool GetFlagset(string fieldname, out uint valueFlags, out uint valueMask)
Parameters
Returns
GetFraction(string, out int, out int)
public bool GetFraction(string fieldname, out int valueNumerator, out int valueDenominator)
Parameters
Returns
GetGType()
public static Type GetGType()
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetInt(string, out int)
public bool GetInt(string fieldname, out int value)
Parameters
Returns
GetInt64(string, out long)
[Version("1.4")]
public bool GetInt64(string fieldname, out long value)
Parameters
Returns
GetName()
public string GetName()
Returns
GetNameId()
public Quark GetNameId()
Returns
GetString(string)
public string? GetString(string fieldname)
Parameters
fieldname
string
Returns
GetUint(string, out uint)
public bool GetUint(string fieldname, out uint value)
Parameters
Returns
GetUint64(string, out ulong)
[Version("1.4")]
public bool GetUint64(string fieldname, out ulong value)
Parameters
Returns
GetValist(string, IntPtr)
public bool GetValist(string firstFieldname, IntPtr args)
Parameters
Returns
GetValue(string)
public Value? GetValue(string fieldname)
Parameters
fieldname
string
Returns
HasField(string)
public bool HasField(string fieldname)
Parameters
fieldname
string
Returns
HasFieldTyped(string, Type)
public bool HasFieldTyped(string fieldname, Type type)
Parameters
Returns
HasName(string)
public bool HasName(string name)
Parameters
name
string
Returns
IdGetValist(Quark, IntPtr)
public bool IdGetValist(Quark firstFieldId, IntPtr args)
Parameters
Returns
IdGetValue(Quark)
public Value? IdGetValue(Quark field)
Parameters
field
Quark
Returns
IdHasField(Quark)
public bool IdHasField(Quark field)
Parameters
field
Quark
Returns
IdHasFieldTyped(Quark, Type)
public bool IdHasFieldTyped(Quark field, Type type)
Parameters
Returns
IdSetValist(Quark, IntPtr)
public void IdSetValist(Quark fieldname, IntPtr varargs)
Parameters
IdSetValue(Quark, Value)
public void IdSetValue(Quark field, Value value)
Parameters
IdTakeValue(Quark, Value)
public void IdTakeValue(Quark field, Value value)
Parameters
Intersect(Structure)
public Structure? Intersect(Structure struct2)
Parameters
struct2
Structure
Returns
IsEqual(Structure)
public bool IsEqual(Structure structure2)
Parameters
structure2
Structure
Returns
IsSubset(Structure)
public bool IsSubset(Structure superset)
Parameters
superset
Structure
Returns
MapInPlace(StructureMapFunc)
public bool MapInPlace(StructureMapFunc func)
Parameters
func
StructureMapFunc
Returns
NFields()
public int NFields()
Returns
NewEmpty(string)
public static Structure NewEmpty(string name)
Parameters
name
string
Returns
NewFromString(string)
[Version("1.2")]
public static Structure? NewFromString(string @string)
Parameters
string
string
Returns
NewIdEmpty(Quark)
public static Structure NewIdEmpty(Quark quark)
Parameters
quark
Quark
Returns
NewValist(string, string, IntPtr)
public static Structure NewValist(string name, string firstfield, IntPtr varargs)
Parameters
Returns
NthFieldName(uint)
public string NthFieldName(uint index)
Parameters
index
uint
Returns
RemoveAllFields()
public void RemoveAllFields()
RemoveField(string)
public void RemoveField(string fieldname)
Parameters
fieldname
string
RemoveFieldsValist(string, IntPtr)
public void RemoveFieldsValist(string fieldname, IntPtr varargs)
Parameters
Serialize(SerializeFlags)
[Version("1.20")]
public string Serialize(SerializeFlags flags)
Parameters
flags
SerializeFlags
Returns
SetArray(string, ValueArray)
[Version("1.12")]
public void SetArray(string fieldname, ValueArray array)
Parameters
fieldname
stringarray
ValueArray
SetList(string, ValueArray)
[Version("1.12")]
public void SetList(string fieldname, ValueArray array)
Parameters
fieldname
stringarray
ValueArray
SetName(string)
public void SetName(string name)
Parameters
name
string
SetParentRefcount(ref int)
public bool SetParentRefcount(ref int refcount)
Parameters
refcount
int
Returns
SetValist(string, IntPtr)
public void SetValist(string fieldname, IntPtr varargs)
Parameters
SetValue(string, Value)
public void SetValue(string fieldname, Value value)
Parameters
TakeValue(string, Value)
public void TakeValue(string fieldname, Value value)
Parameters
ToString()
public string ToString()