Beispiel #1
0
 static void OverrideUnselectedAll(GLib.GType gtype, UnselectedAllNativeDelegate callback)
 {
     unsafe {
         IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("unselect_all"));
         *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback);
     }
 }
Beispiel #2
0
        private void InternalUnselectedAll()
        {
            UnselectedAllNativeDelegate unmanaged = class_abi.BaseOverride <UnselectedAllNativeDelegate>(this.LookupGType(), "unselect_all");

            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle);
        }
Beispiel #3
0
        private void InternalUnselectedAll()
        {
            UnselectedAllNativeDelegate unmanaged = null;

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

            unmanaged(this.Handle);
        }