public Gdk.Device[] ListDevices(Gdk.DeviceType type) { IntPtr raw_ret = gdk_device_manager_list_devices(Handle, (int)type); Gdk.Device[] ret = (Gdk.Device[])GLib.Marshaller.ListPtrToArray(raw_ret, typeof(GLib.List), true, false, typeof(Gdk.Device)); return(ret); }
private Gdk.Device[] InternalListDevices (Gdk.DeviceType type) { ListDevicesNativeDelegate unmanaged = class_abi.BaseOverride<ListDevicesNativeDelegate>(this.LookupGType(), "list_devices"); if (unmanaged == null) return null; IntPtr __result = unmanaged (this.Handle, (int) type); return (Gdk.Device[]) GLib.Marshaller.ListPtrToArray (__result, typeof(GLib.List), true, false, typeof(Gdk.Device)); }
private Gdk.Device[] InternalListDevices(Gdk.DeviceType type) { ListDevicesNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("list_devices")); unmanaged = (ListDevicesNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ListDevicesNativeDelegate)); } if (unmanaged == null) { return(null); } IntPtr __result = unmanaged(this.Handle, (int)type); return((Gdk.Device[])GLib.Marshaller.ListPtrToArray(__result, typeof(GLib.List), true, false, typeof(Gdk.Device))); }
protected virtual Gdk.Device[] OnListDevices(Gdk.DeviceType type) { return(InternalListDevices(type)); }