Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
        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));
        }
Exemplo n.º 3
0
        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));
        }
Exemplo n.º 4
0
		static void OverrideCompositeName (GLib.GType gtype, CompositeNameNativeDelegate callback)
		{
			gtksharp_container_override_composite_name (gtype.GetClassPtr (), callback);
		}
Exemplo n.º 5
0
		static extern void gtksharp_container_override_composite_name (IntPtr class_struct, CompositeNameNativeDelegate cb);