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

            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle);
        }
        private void InternalSelectionDone()
        {
            SelectionDoneNativeDelegate unmanaged = null;

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

            unmanaged(this.Handle);
        }
Beispiel #4
0
		static void OverrideSelectionDone (GLib.GType gtype, SelectionDoneNativeDelegate callback)
		{
			gtksharp_menushell_override_selection_done (gtype.GetClassPtr (), callback);
		}
Beispiel #5
0
		static extern void gtksharp_menushell_override_selection_done (IntPtr class_struct, SelectionDoneNativeDelegate cb);