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

            if (unmanaged == null)
            {
                return;
            }

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

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

            unmanaged(this.Handle);
        }