예제 #1
0
파일: Context.cs 프로젝트: iainlane/f-spot
            public ProgressFuncsWrapper(ProgressStartFunc start, ProgressUpdateFunc update, ProgressStopFunc stop)
            {
                managed_start = start;
                if (managed_start != null)
                    NativeStartDelegate = new ProgressStartFuncNative (NativeStartCallback);

                managed_update = update;
                if (managed_update != null)
                    NativeUpdateDelegate = new ProgressUpdateFuncNative (NativeUpdateCallback);

                managed_stop = stop;
                if (managed_stop != null)
                    NativeStopDelegate = new ProgressStopFuncNative (NativeStopCallback);
            }
예제 #2
0
파일: Context.cs 프로젝트: iainlane/f-spot
 internal static extern void gp_glue_context_set_progress_funcs(HandleRef context, ProgressStartFuncNative start_func, ProgressUpdateFuncNative update_func, ProgressStopFuncNative stop_func, IntPtr data);