示例#1
0
 public EventListenerWrapper(Atk.EventListener managed)
 {
     this.managed = managed;
     if (managed != null)
     {
         NativeDelegate = new EventListenerNative(NativeCallback);
     }
 }
		public static Atk.EventListener GetManagedDelegate (EventListenerNative native)
		{
			if (native == null)
				return null;
			EventListenerWrapper wrapper = (EventListenerWrapper) native.Target;
			if (wrapper == null)
				return null;
			return wrapper.managed;
		}
示例#3
0
        public static Atk.EventListener GetManagedDelegate(EventListenerNative native)
        {
            if (native == null)
            {
                return(null);
            }
            EventListenerWrapper wrapper = (EventListenerWrapper)native.Target;

            if (wrapper == null)
            {
                return(null);
            }
            return(wrapper.managed);
        }
示例#4
0
 internal EventListenerInvoker(EventListenerNative native_cb, IntPtr data, GLib.DestroyNotify notify)
 {
     this.native_cb = native_cb;
     __data         = data;
     __notify       = notify;
 }
示例#5
0
 internal EventListenerInvoker(EventListenerNative native_cb, IntPtr data) : this(native_cb, data, null)
 {
 }
示例#6
0
 internal EventListenerInvoker(EventListenerNative native_cb) : this(native_cb, IntPtr.Zero, null)
 {
 }
		public EventListenerWrapper (Atk.EventListener managed)
		{
			this.managed = managed;
			if (managed != null)
				NativeDelegate = new EventListenerNative (NativeCallback);
		}
		internal EventListenerInvoker (EventListenerNative native_cb, IntPtr data, GLib.DestroyNotify notify)
		{
			this.native_cb = native_cb;
			__data = data;
			__notify = notify;
		}
		internal EventListenerInvoker (EventListenerNative native_cb, IntPtr data) : this (native_cb, data, null) {}
		internal EventListenerInvoker (EventListenerNative native_cb) : this (native_cb, IntPtr.Zero, null) {}