Esempio n. 1
0
 static void OverrideActionActivated(GLib.GType gtype, ActionActivatedNativeDelegate callback)
 {
     unsafe {
         IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("action_activated"));
         *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback);
     }
 }
Esempio n. 2
0
        private void InternalActionActivated(int index_)
        {
            ActionActivatedNativeDelegate unmanaged = class_abi.BaseOverride <ActionActivatedNativeDelegate>(this.LookupGType(), "action_activated");

            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle, index_);
        }
Esempio n. 3
0
        private void InternalActionActivated(int index_)
        {
            ActionActivatedNativeDelegate unmanaged = null;

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

            unmanaged(this.Handle, index_);
        }