public void SetStringProperty(string name, string value) { OldGLib.Value val = new OldGLib.Value(value); IntPtr native_name = OldGLib.Marshaller.StringToPtrGStrdup(name); g_object_set_property(raw, native_name, ref val); OldGLib.Marshaller.Free(native_name); }
public void AddStringValue(TagMergeMode mode, string tag, string value) { OldGLib.Value val = new OldGLib.Value (OldGLib.GType.String); val.Val = value; IntPtr native_tag = OldGLib.Marshaller.StringToPtrGStrdup (tag); gst_tag_list_add_value (raw, mode, native_tag, ref val); OldGLib.Marshaller.Free (native_tag); }
public void AddStringValue(TagMergeMode mode, string tag, string value) { OldGLib.Value val = new OldGLib.Value(OldGLib.GType.String); val.Val = value; IntPtr native_tag = OldGLib.Marshaller.StringToPtrGStrdup(tag); gst_tag_list_add_value(raw, mode, native_tag, ref val); OldGLib.Marshaller.Free(native_tag); }
public string GetStringProperty(string name) { OldGLib.Value val = new OldGLib.Value (); val.Init (OldGLib.GType.String); IntPtr native_name = OldGLib.Marshaller.StringToPtrGStrdup (name); g_object_get_property (raw, native_name, ref val); OldGLib.Marshaller.Free (native_name); return val.Val as string; }
public IntPtr GetProperty(string name) { OldGLib.Value val = new OldGLib.Value (); val.Init (OldGLib.GType.Object); IntPtr native_name = OldGLib.Marshaller.StringToPtrGStrdup (name); g_object_get_property (raw, native_name, ref val); OldGLib.Marshaller.Free (native_name); return ((OldGLib.Object)(val.Val)).Handle; }
public void SetProperty(string name, Element value) { OldGLib.Value val = new OldGLib.Value(OldGLib.GType.Object); val.Val = OldGLib.Object.GetObject(value.ToIntPtr()); IntPtr native_name = OldGLib.Marshaller.StringToPtrGStrdup(name); g_object_set_property(raw, native_name, ref val); OldGLib.Marshaller.Free(native_name); }
public void SetFloatProperty(string name, float value) { OldGLib.Value val = new OldGLib.Value(OldGLib.GType.Float); val.Val = value; IntPtr native_name = OldGLib.Marshaller.StringToPtrGStrdup(name); g_object_set_property(raw, native_name, ref val); OldGLib.Marshaller.Free(native_name); }
public string GetStringProperty(string name) { OldGLib.Value val = new OldGLib.Value(); val.Init(OldGLib.GType.String); IntPtr native_name = OldGLib.Marshaller.StringToPtrGStrdup(name); g_object_get_property(raw, native_name, ref val); OldGLib.Marshaller.Free(native_name); return(val.Val as string); }
public IntPtr GetProperty(string name) { OldGLib.Value val = new OldGLib.Value(); val.Init(OldGLib.GType.Object); IntPtr native_name = OldGLib.Marshaller.StringToPtrGStrdup(name); g_object_get_property(raw, native_name, ref val); OldGLib.Marshaller.Free(native_name); return(((OldGLib.Object)(val.Val)).Handle); }
public OldGLib.Value PopMessageStructure(string name) { IntPtr structure = Gst.Marshaller.gst_message_get_structure(Pop()); if (structure == IntPtr.Zero) { return(new OldGLib.Value(IntPtr.Zero)); } IntPtr native_name = OldGLib.Marshaller.StringToPtrGStrdup(name); OldGLib.Value val = Gst.Marshaller.gst_structure_get_value(structure, native_name); OldGLib.Marshaller.Free(native_name); return(val); }
unsafe private static extern void gst_tag_list_add_value(IntPtr taglist, TagMergeMode mode, IntPtr tag, ref OldGLib.Value value);
public void SetBooleanProperty(string name, bool value) { OldGLib.Value val = new OldGLib.Value (OldGLib.GType.Boolean); val.Val = value; IntPtr native_name = OldGLib.Marshaller.StringToPtrGStrdup (name); g_object_set_property (raw, native_name, ref val); OldGLib.Marshaller.Free (native_name); }
public void SetStringProperty(string name, string value) { OldGLib.Value val = new OldGLib.Value (value); IntPtr native_name = OldGLib.Marshaller.StringToPtrGStrdup (name); g_object_set_property (raw, native_name, ref val); OldGLib.Marshaller.Free (native_name); }
public void SetProperty(string name, Element value) { OldGLib.Value val = new OldGLib.Value (OldGLib.GType.Object); val.Val = OldGLib.Object.GetObject (value.ToIntPtr ()); IntPtr native_name = OldGLib.Marshaller.StringToPtrGStrdup (name); g_object_set_property (raw, native_name, ref val); OldGLib.Marshaller.Free (native_name); }
private static extern void g_object_set_property(IntPtr gobject, IntPtr property_name, ref OldGLib.Value value);