示例#1
0
 static void OverrideSelectedAll(GLib.GType gtype, SelectedAllNativeDelegate callback)
 {
     unsafe {
         IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("select_all"));
         *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback);
     }
 }
示例#2
0
        private void InternalSelectedAll()
        {
            SelectedAllNativeDelegate unmanaged = class_abi.BaseOverride <SelectedAllNativeDelegate>(this.LookupGType(), "select_all");

            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle);
        }
示例#3
0
        private void InternalSelectedAll()
        {
            SelectedAllNativeDelegate unmanaged = null;

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

            unmanaged(this.Handle);
        }