예제 #1
0
파일: Context.cs 프로젝트: iainlane/f-spot
 public void SetIdleFunc(IdleFunc func)
 {
     idle_func_wrapper = new IdleFuncWrapper (func);
     IntPtr data = IntPtr.Zero;
     if (func != null)
         data = (IntPtr) GCHandle.Alloc (idle_func_wrapper);
     gp_context_set_idle_func (Handle, idle_func_wrapper.NativeDelegate, data);
 }
예제 #2
0
        public Slider   setOnIdle(IdleFunc func)
        {
            this.on_idle = func;

            return(this);
        }
예제 #3
0
파일: Context.cs 프로젝트: iainlane/f-spot
 public IdleFuncWrapper(IdleFunc managed)
 {
     this.managed = managed;
     if (managed != null)
         NativeDelegate = NativeCallback;
 }