Ejemplo n.º 1
0
 static void OverrideChildAdded(GLib.GType gtype, ChildAddedNativeDelegate callback)
 {
     unsafe {
         IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("child_added"));
         *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback);
     }
 }
Ejemplo n.º 2
0
        private void InternalChildAdded(GES.TimelineElement element)
        {
            ChildAddedNativeDelegate unmanaged = null;

            unsafe {
                IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("child_added"));
                unmanaged = (ChildAddedNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ChildAddedNativeDelegate));
            }
            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle, element == null ? IntPtr.Zero : element.Handle);
        }
Ejemplo n.º 3
0
Archivo: Bin.cs Proyecto: jwzl/ossbuild
		static void OverrideChildAdded (Gst.GLib.GType gtype, ChildAddedNativeDelegate callback)
		{
			OverrideVirtualMethod (gtype, "child-added", callback);
		}