Ejemplo n.º 1
0
 static void OverrideChildType(GLib.GType gtype, ChildTypeNativeDelegate callback)
 {
     unsafe {
         IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("child_type"));
         *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback);
     }
 }
Ejemplo n.º 2
0
 static void OverrideObsoleteChildType(GLib.GType gtype)
 {
     if (ObsoleteChildTypeVMCallback == null)
     {
         ObsoleteChildTypeVMCallback = new ChildTypeNativeDelegate(ObsoleteChildType_cb);
     }
     OverrideChildType(gtype, ObsoleteChildTypeVMCallback);              // -> autogenerated method
 }
Ejemplo n.º 3
0
        private GLib.GType InternalChildType()
        {
            ChildTypeNativeDelegate unmanaged = class_abi.BaseOverride <ChildTypeNativeDelegate>(this.LookupGType(), "child_type");

            if (unmanaged == null)
            {
                return(GLib.GType.None);
            }

            IntPtr __result = unmanaged(this.Handle);

            return(new GLib.GType(__result));
        }
Ejemplo n.º 4
0
        private GLib.GType InternalChildType()
        {
            ChildTypeNativeDelegate unmanaged = null;

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

            IntPtr __result = unmanaged(this.Handle);

            return(new GLib.GType(__result));
        }
Ejemplo n.º 5
0
		static void OverrideChildType (GLib.GType gtype, ChildTypeNativeDelegate callback)
		{
			gtksharp_container_override_child_type (gtype.GetClassPtr (), callback);
		}
Ejemplo n.º 6
0
		static extern void gtksharp_container_override_child_type (IntPtr class_struct, ChildTypeNativeDelegate cb);
Ejemplo n.º 7
0
 static void OverrideObsoleteChildType(GLib.GType gtype)
 {
     if (ObsoleteChildTypeVMCallback == null)
         ObsoleteChildTypeVMCallback = new ChildTypeNativeDelegate (ObsoleteChildType_cb);
     OverrideChildType (gtype, ObsoleteChildTypeVMCallback); // -> autogenerated method
 }