2015-11-08 14:14:26 +00:00
|
|
|
namespace Gitg
|
|
|
|
{
|
2015-11-08 17:48:22 +00:00
|
|
|
[CCode(cprefix = "GitgPlatformSupport", lower_case_cprefix = "gitg_platform_support_", cheader_filename = "libgitg/gitg-platform-support.h")]
|
2015-11-08 14:14:26 +00:00
|
|
|
public class PlatformSupport
|
|
|
|
{
|
|
|
|
public static bool use_native_window_controls(Gdk.Display? display = null);
|
2015-12-19 20:03:51 +00:00
|
|
|
public static async GLib.InputStream http_get(GLib.File url, GLib.Cancellable? cancellable = null) throws GLib.IOError;
|
2015-12-20 16:47:22 +00:00
|
|
|
|
|
|
|
public static Cairo.Surface create_cursor_surface(Gdk.Display? display,
|
|
|
|
Gdk.CursorType cursor_type,
|
2019-01-01 18:00:38 +00:00
|
|
|
out double hot_x = null,
|
|
|
|
out double hot_y = null,
|
|
|
|
out double width = null,
|
|
|
|
out double height = null);
|
2015-12-21 13:53:33 +00:00
|
|
|
|
|
|
|
public static GLib.InputStream new_input_stream_from_fd(int fd, bool close_fd);
|
2015-12-21 14:54:10 +00:00
|
|
|
|
|
|
|
public static string get_lib_dir();
|
|
|
|
public static string get_locale_dir();
|
|
|
|
public static string get_data_dir();
|
2015-12-22 08:56:05 +00:00
|
|
|
public static string? get_user_home_dir(string? user = null);
|
2015-12-22 17:37:36 +00:00
|
|
|
public static void application_support_prepare_startup();
|
2015-11-08 14:14:26 +00:00
|
|
|
}
|
|
|
|
}
|