mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-23 00:25:27 +00:00
introduce IsSupported in <namespace>.Global
This commit is contained in:
parent
6b4cf555e0
commit
882140fd9d
|
@ -40,6 +40,9 @@ namespace Atk {
|
|||
GLib.Marshaller.Free (native_event_type);
|
||||
return id;
|
||||
}
|
||||
|
||||
public static bool IsSupported => GLibrary.IsSupported(Library.Atk);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
11
Source/Libs/CairoSharp/Global.cs
Normal file
11
Source/Libs/CairoSharp/Global.cs
Normal file
|
@ -0,0 +1,11 @@
|
|||
namespace Cairo
|
||||
{
|
||||
|
||||
public partial class Global
|
||||
{
|
||||
|
||||
public static bool IsSupported => GLibrary.IsSupported(Library.Cairo);
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -85,6 +85,9 @@ namespace GLib {
|
|||
{
|
||||
return Marshaller.PtrToStringGFree (g_format_size_for_display (size));
|
||||
}
|
||||
|
||||
public static bool IsSupported => GLibrary.IsSupported(Library.GLib);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -160,6 +160,9 @@ namespace Gdk {
|
|||
result [i] = (VisualType) tmp [i];
|
||||
return result;
|
||||
}
|
||||
|
||||
public static bool IsSupported => GLibrary.IsSupported(Library.Gdk);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
11
Source/Libs/GioSharp/Global.cs
Normal file
11
Source/Libs/GioSharp/Global.cs
Normal file
|
@ -0,0 +1,11 @@
|
|||
namespace Gio
|
||||
{
|
||||
|
||||
public partial class Global
|
||||
{
|
||||
|
||||
public static bool IsSupported => GLibrary.IsSupported(Library.Gio);
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -20,8 +20,6 @@ namespace Gtk {
|
|||
|
||||
public partial class Global {
|
||||
|
||||
internal const string GtkNativeDll = "libgtk-3-0.dll";
|
||||
|
||||
public static bool ShowUri (string uri)
|
||||
{
|
||||
return ShowUri (null, uri);
|
||||
|
@ -31,6 +29,9 @@ namespace Gtk {
|
|||
{
|
||||
return ShowUri (screen, uri, Gtk.Global.CurrentEventTime);
|
||||
}
|
||||
|
||||
public static bool IsSupported => GLibrary.IsSupported(Library.Gtk);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
11
Source/Libs/GtkSourceSharp/Global.cs
Normal file
11
Source/Libs/GtkSourceSharp/Global.cs
Normal file
|
@ -0,0 +1,11 @@
|
|||
namespace GtkSource
|
||||
{
|
||||
|
||||
public partial class Global
|
||||
{
|
||||
|
||||
public static bool IsSupported => GLibrary.IsSupported(Library.GtkSource);
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -50,6 +50,9 @@ namespace Pango {
|
|||
attrs = new Pango.AttrList (attrs_handle);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static bool IsSupported => GLibrary.IsSupported(Library.Pango);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue