mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-08 16:03:21 +02:00
22 lines
623 B
Plaintext
22 lines
623 B
Plaintext
![]() |
// DisplayManager.custom - customizations to Gdk.DisplayManager
|
||
|
//
|
||
|
// Authors: Mike Kestner <mkestner@ximian.com>
|
||
|
//
|
||
|
// Copyright (c) 2004 Novell, Inc.
|
||
|
|
||
|
[DllImport("libgdk-win32-2.0-0.dll")]
|
||
|
static extern IntPtr gdk_display_manager_list_displays (IntPtr raw);
|
||
|
|
||
|
public Display[] ListDisplays ()
|
||
|
{
|
||
|
IntPtr raw_ret = gdk_display_manager_list_displays (Handle);
|
||
|
if (raw_ret == IntPtr.Zero)
|
||
|
return new Display [0];
|
||
|
GLib.SList list = new GLib.SList(raw_ret);
|
||
|
Display[] result = new Display [list.Count];
|
||
|
for (int i = 0; i < list.Count; i++)
|
||
|
result [i] = list [i] as Display;
|
||
|
return result;
|
||
|
}
|
||
|
|