예제 #1
0
        public static bool Connect(QObject obj, string signal, SlotFunc d)
        {
            // allocate a gchandle so the delegate won't be collected
            IntPtr handle = (IntPtr)GCHandle.Alloc(d);

            return(ConnectDelegate((IntPtr)GCHandle.Alloc(obj), signal, d, handle));
        }
예제 #2
0
 public static bool Disconnect <T1, T2, T3, T4>(QObject obj, string signal, SlotFunc <T1, T2, T3, T4> d)
 {
     return(DisconnectDelegate((IntPtr)GCHandle.Alloc(obj), signal, d));
 }
예제 #3
0
        public static bool Connect <T1, T2, T3, T4, T5>(QObject obj, string signal, SlotFunc <T1, T2, T3, T4, T5> d)
        {
            IntPtr handle = (IntPtr)GCHandle.Alloc(d);

            return(ConnectDelegate((IntPtr)GCHandle.Alloc(obj), signal, d, handle));
        }