Exemplo n.º 1
0
 static void OverrideGetSlaves(GLib.GType gtype, GetSlavesNativeDelegate callback)
 {
     unsafe {
         IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("get_slaves"));
         *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback);
     }
 }
Exemplo n.º 2
0
        private GLib.List InternalGetSlaves(Gdk.SeatCapabilities capabilities)
        {
            GetSlavesNativeDelegate unmanaged = class_abi.BaseOverride <GetSlavesNativeDelegate>(this.LookupGType(), "get_slaves");

            if (unmanaged == null)
            {
                return(null);
            }

            IntPtr __result = unmanaged(this.Handle, (int)capabilities);

            return(new GLib.List(__result));
        }
Exemplo n.º 3
0
        private GLib.List InternalGetSlaves(Gdk.SeatCapabilities capabilities)
        {
            GetSlavesNativeDelegate unmanaged = null;

            unsafe {
                IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("get_slaves"));
                unmanaged = (GetSlavesNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetSlavesNativeDelegate));
            }
            if (unmanaged == null)
            {
                return(null);
            }

            IntPtr __result = unmanaged(this.Handle, (int)capabilities);

            return(new GLib.List(__result));
        }