Example #1
0
 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);
 }
Example #2
0
        public Slider   setOnIdle(IdleFunc func)
        {
            this.on_idle = func;

            return(this);
        }
Example #3
0
 public IdleFuncWrapper(IdleFunc managed)
 {
     this.managed = managed;
     if (managed != null)
         NativeDelegate = NativeCallback;
 }