Exemplo n.º 1
0
 static void OverrideShow(GLib.GType gtype, ShowNativeDelegate callback)
 {
     unsafe {
         IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("show"));
         *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback);
     }
 }
Exemplo n.º 2
0
        private void InternalShow()
        {
            ShowNativeDelegate unmanaged = class_abi.BaseOverride <ShowNativeDelegate>(this.LookupGType(), "show");

            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle);
        }