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

            if (unmanaged == null)
            {
                return;
            }

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

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

            unmanaged(this.Handle);
        }