Exemplo n.º 1
0
 static void OverrideAreaUpdated(GLib.GType gtype, AreaUpdatedNativeDelegate callback)
 {
     unsafe {
         IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("area_updated"));
         *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback);
     }
 }
Exemplo n.º 2
0
        private void InternalAreaUpdated(int x, int y, int width, int height)
        {
            AreaUpdatedNativeDelegate unmanaged = class_abi.BaseOverride <AreaUpdatedNativeDelegate>(this.LookupGType(), "area_updated");

            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle, x, y, width, height);
        }
Exemplo n.º 3
0
        private void InternalAreaUpdated(int x, int y, int width, int height)
        {
            AreaUpdatedNativeDelegate unmanaged = null;

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

            unmanaged(this.Handle, x, y, width, height);
        }
Exemplo n.º 4
0
		static void OverrideAreaUpdated (GLib.GType gtype, AreaUpdatedNativeDelegate callback)
		{
			GdkPixbufLoaderClass class_iface = GetClassStruct (gtype, false);
			class_iface.AreaUpdated = callback;
			OverrideClassStruct (gtype, class_iface);
		}