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

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