Esempio n. 1
0
 static void OverrideIterateItemAttributes(GLib.GType gtype, IterateItemAttributesNativeDelegate callback)
 {
     unsafe {
         IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("iterate_item_attributes"));
         *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback);
     }
 }
Esempio n. 2
0
        private GLib.MenuAttributeIter InternalIterateItemAttributes(int item_index)
        {
            IterateItemAttributesNativeDelegate unmanaged = class_abi.BaseOverride <IterateItemAttributesNativeDelegate>(this.LookupGType(), "iterate_item_attributes");

            if (unmanaged == null)
            {
                return(null);
            }

            IntPtr __result = unmanaged(this.Handle, item_index);

            return(GLib.Object.GetObject(__result) as GLib.MenuAttributeIter);
        }
Esempio n. 3
0
        private GLib.MenuAttributeIter InternalIterateItemAttributes(int item_index)
        {
            IterateItemAttributesNativeDelegate unmanaged = null;

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

            IntPtr __result = unmanaged(this.Handle, item_index);

            return(GLib.Object.GetObject(__result) as GLib.MenuAttributeIter);
        }