Table of Contents

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

StructureOwnedHandle

Methods

CanIntersect(Structure)

public bool CanIntersect(Structure struct2)

Parameters

struct2 Structure

Returns

bool

Copy()

public Structure Copy()

Returns

Structure

Equals(Structure?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Structure? other)

Parameters

other Structure

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

FilterAndMapInPlace(StructureFilterMapFunc)

[Version("1.6")]
public void FilterAndMapInPlace(StructureFilterMapFunc func)

Parameters

func StructureFilterMapFunc

Fixate()

public void Fixate()

FixateField(string)

public bool FixateField(string fieldName)

Parameters

fieldName string

Returns

bool

FixateFieldBoolean(string, bool)

public bool FixateFieldBoolean(string fieldName, bool target)

Parameters

fieldName string
target bool

Returns

bool

FixateFieldNearestDouble(string, double)

public bool FixateFieldNearestDouble(string fieldName, double target)

Parameters

fieldName string
target double

Returns

bool

FixateFieldNearestFraction(string, int, int)

public bool FixateFieldNearestFraction(string fieldName, int targetNumerator, int targetDenominator)

Parameters

fieldName string
targetNumerator int
targetDenominator int

Returns

bool

FixateFieldNearestInt(string, int)

public bool FixateFieldNearestInt(string fieldName, int target)

Parameters

fieldName string
target int

Returns

bool

FixateFieldString(string, string)

public bool FixateFieldString(string fieldName, string target)

Parameters

fieldName string
target string

Returns

bool

Foreach(StructureForeachFunc)

public bool Foreach(StructureForeachFunc func)

Parameters

func StructureForeachFunc

Returns

bool

Free()

public void Free()

FromString(string, out string)

public static Structure? FromString(string @string, out string end)

Parameters

string string
end string

Returns

Structure

GetBoolean(string, out bool)

public bool GetBoolean(string fieldname, out bool value)

Parameters

fieldname string
value bool

Returns

bool

GetClockTime(string, out ClockTime)

public bool GetClockTime(string fieldname, out ClockTime value)

Parameters

fieldname string
value ClockTime

Returns

bool

GetDouble(string, out double)

public bool GetDouble(string fieldname, out double value)

Parameters

fieldname string
value double

Returns

bool

GetEnum(string, Type, out int)

public bool GetEnum(string fieldname, Type enumtype, out int value)

Parameters

fieldname string
enumtype Type
value int

Returns

bool

GetFieldType(string)

public Type GetFieldType(string fieldname)

Parameters

fieldname string

Returns

Type

GetFlags(string, Type, out uint)

[Version("1.22")]
public bool GetFlags(string fieldname, Type flagsType, out uint value)

Parameters

fieldname string
flagsType Type
value uint

Returns

bool

GetFlagset(string, out uint, out uint)

[Version("1.6")]
public bool GetFlagset(string fieldname, out uint valueFlags, out uint valueMask)

Parameters

fieldname string
valueFlags uint
valueMask uint

Returns

bool

GetFraction(string, out int, out int)

public bool GetFraction(string fieldname, out int valueNumerator, out int valueDenominator)

Parameters

fieldname string
valueNumerator int
valueDenominator int

Returns

bool

GetGType()

public static Type GetGType()

Returns

Type

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

fieldname string
value int

Returns

bool

GetInt64(string, out long)

[Version("1.4")]
public bool GetInt64(string fieldname, out long value)

Parameters

fieldname string
value long

Returns

bool

GetName()

public string GetName()

Returns

string

GetNameId()

public Quark GetNameId()

Returns

Quark

GetString(string)

public string? GetString(string fieldname)

Parameters

fieldname string

Returns

string

GetUint(string, out uint)

public bool GetUint(string fieldname, out uint value)

Parameters

fieldname string
value uint

Returns

bool

GetUint64(string, out ulong)

[Version("1.4")]
public bool GetUint64(string fieldname, out ulong value)

Parameters

fieldname string
value ulong

Returns

bool

GetValist(string, IntPtr)

public bool GetValist(string firstFieldname, IntPtr args)

Parameters

firstFieldname string
args IntPtr

Returns

bool

GetValue(string)

public Value? GetValue(string fieldname)

Parameters

fieldname string

Returns

Value

HasField(string)

public bool HasField(string fieldname)

Parameters

fieldname string

Returns

bool

HasFieldTyped(string, Type)

public bool HasFieldTyped(string fieldname, Type type)

Parameters

fieldname string
type Type

Returns

bool

HasName(string)

public bool HasName(string name)

Parameters

name string

Returns

bool

IdGetValist(Quark, IntPtr)

public bool IdGetValist(Quark firstFieldId, IntPtr args)

Parameters

firstFieldId Quark
args IntPtr

Returns

bool

IdGetValue(Quark)

public Value? IdGetValue(Quark field)

Parameters

field Quark

Returns

Value

IdHasField(Quark)

public bool IdHasField(Quark field)

Parameters

field Quark

Returns

bool

IdHasFieldTyped(Quark, Type)

public bool IdHasFieldTyped(Quark field, Type type)

Parameters

field Quark
type Type

Returns

bool

IdSetValist(Quark, IntPtr)

public void IdSetValist(Quark fieldname, IntPtr varargs)

Parameters

fieldname Quark
varargs IntPtr

IdSetValue(Quark, Value)

public void IdSetValue(Quark field, Value value)

Parameters

field Quark
value Value

IdTakeValue(Quark, Value)

public void IdTakeValue(Quark field, Value value)

Parameters

field Quark
value Value

Intersect(Structure)

public Structure? Intersect(Structure struct2)

Parameters

struct2 Structure

Returns

Structure

IsEqual(Structure)

public bool IsEqual(Structure structure2)

Parameters

structure2 Structure

Returns

bool

IsSubset(Structure)

public bool IsSubset(Structure superset)

Parameters

superset Structure

Returns

bool

MapInPlace(StructureMapFunc)

public bool MapInPlace(StructureMapFunc func)

Parameters

func StructureMapFunc

Returns

bool

NFields()

public int NFields()

Returns

int

NewEmpty(string)

public static Structure NewEmpty(string name)

Parameters

name string

Returns

Structure

NewFromString(string)

[Version("1.2")]
public static Structure? NewFromString(string @string)

Parameters

string string

Returns

Structure

NewIdEmpty(Quark)

public static Structure NewIdEmpty(Quark quark)

Parameters

quark Quark

Returns

Structure

NewValist(string, string, IntPtr)

public static Structure NewValist(string name, string firstfield, IntPtr varargs)

Parameters

name string
firstfield string
varargs IntPtr

Returns

Structure

NthFieldName(uint)

public string NthFieldName(uint index)

Parameters

index uint

Returns

string

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

fieldname string
varargs IntPtr

Serialize(SerializeFlags)

[Version("1.20")]
public string Serialize(SerializeFlags flags)

Parameters

flags SerializeFlags

Returns

string

SetArray(string, ValueArray)

[Version("1.12")]
public void SetArray(string fieldname, ValueArray array)

Parameters

fieldname string
array ValueArray

SetList(string, ValueArray)

[Version("1.12")]
public void SetList(string fieldname, ValueArray array)

Parameters

fieldname string
array ValueArray

SetName(string)

public void SetName(string name)

Parameters

name string

SetParentRefcount(ref int)

public bool SetParentRefcount(ref int refcount)

Parameters

refcount int

Returns

bool

SetValist(string, IntPtr)

public void SetValist(string fieldname, IntPtr varargs)

Parameters

fieldname string
varargs IntPtr

SetValue(string, Value)

public void SetValue(string fieldname, Value value)

Parameters

fieldname string
value Value

TakeValue(string, Value)

public void TakeValue(string fieldname, Value value)

Parameters

fieldname string
value Value

ToString()

public string ToString()

Returns

string