Ejemplo n.º 1
0
 static void OverrideNoMatches(GLib.GType gtype, NoMatchesNativeDelegate callback)
 {
     unsafe {
         IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("no_matches"));
         *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback);
     }
 }
Ejemplo n.º 2
0
        private void InternalNoMatches()
        {
            NoMatchesNativeDelegate unmanaged = class_abi.BaseOverride <NoMatchesNativeDelegate>(this.LookupGType(), "no_matches");

            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle);
        }
Ejemplo n.º 3
0
        private void InternalNoMatches()
        {
            NoMatchesNativeDelegate unmanaged = null;

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

            unmanaged(this.Handle);
        }