static void OverrideCompositeName(GLib.GType gtype, CompositeNameNativeDelegate callback) { unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("composite_name")); *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback); } }
private string InternalCompositeName(Gtk.Widget child) { CompositeNameNativeDelegate unmanaged = class_abi.BaseOverride <CompositeNameNativeDelegate>(this.LookupGType(), "composite_name"); if (unmanaged == null) { return(null); } IntPtr __result = unmanaged(this.Handle, child == null ? IntPtr.Zero : child.Handle); return(GLib.Marshaller.PtrToStringGFree(__result)); }
private string InternalCompositeName(Gtk.Widget child) { CompositeNameNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("composite_name")); unmanaged = (CompositeNameNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(CompositeNameNativeDelegate)); } if (unmanaged == null) { return(null); } IntPtr __result = unmanaged(this.Handle, child == null ? IntPtr.Zero : child.Handle); return(GLib.Marshaller.PtrToStringGFree(__result)); }
static void OverrideCompositeName (GLib.GType gtype, CompositeNameNativeDelegate callback) { gtksharp_container_override_composite_name (gtype.GetClassPtr (), callback); }
static extern void gtksharp_container_override_composite_name (IntPtr class_struct, CompositeNameNativeDelegate cb);