public StatusFuncWrapper(StatusFunc managed) { this.managed = managed; if (managed != null) NativeDelegate = NativeCallback; }
public void SetStatusFunc(StatusFunc func) { status_func_wrapper = new StatusFuncWrapper (func); IntPtr data = IntPtr.Zero; if (func != null) data = (IntPtr) GCHandle.Alloc (status_func_wrapper); gp_glue_context_set_status_func (gluecontext, status_func_wrapper.NativeDelegate, data); }