/* gmobile.vapi generated by vapigen, do not modify. */

[CCode (cprefix = "Gm", gir_namespace = "Gm", gir_version = "0", lower_case_cprefix = "gm_")]
namespace Gm {
	[CCode (cheader_filename = "gmobile.h", type_id = "gm_cutout_get_type ()")]
	[Version (since = "0.0.2")]
	public class Cutout : GLib.Object {
		[CCode (has_construct_function = false)]
		public Cutout (string path);
		public unowned Gm.Rect get_bounds ();
		public unowned string get_name ();
		public unowned string get_path ();
		public Gm.Rect bounds { get; }
		public string name { get; construct; }
		public string path { get; construct; }
	}
	[CCode (cheader_filename = "gmobile.h", type_id = "gm_device_info_get_type ()")]
	[Version (since = "0.0.1")]
	public class DeviceInfo : GLib.Object {
		[CCode (has_construct_function = false)]
		public DeviceInfo (string compatibles);
		public unowned Gm.DisplayPanel get_display_panel ();
		[CCode (array_length = false, array_null_terminated = true)]
		[NoAccessorMethod]
		public string[] compatibles { owned get; construct; }
	}
	[CCode (cheader_filename = "gmobile.h", type_id = "gm_display_panel_get_type ()")]
	[Version (since = "0.0.1")]
	public class DisplayPanel : GLib.Object {
		[CCode (has_construct_function = false)]
		public DisplayPanel ();
		[CCode (has_construct_function = false)]
		public DisplayPanel.from_data (string data) throws GLib.Error;
		[CCode (has_construct_function = false)]
		public DisplayPanel.from_resource (string resource_name) throws GLib.Error;
		[Version (deprecated = true, deprecated_since = "0.6.0", since = "0.0.1")]
		public int get_border_radius ();
		[Version (since = "0.6.0")]
		public GLib.Array<int> get_corner_radii ();
		public unowned GLib.ListModel get_cutouts ();
		public int get_height ();
		public unowned string get_name ();
		public int get_width ();
		public int get_x_res ();
		public int get_y_res ();
		[NoAccessorMethod]
		[Version (deprecated = true, deprecated_since = "0.6.0", since = "0.0.1")]
		public int border_radius { get; set; }
		[NoAccessorMethod]
		[Version (since = "0.6.0")]
		public GLib.Array<void*> corner_radii { owned get; set; }
		[NoAccessorMethod]
		public GLib.ListStore cutouts { owned get; set; }
		[NoAccessorMethod]
		public int height { get; set; }
		[NoAccessorMethod]
		public string name { owned get; set; }
		[NoAccessorMethod]
		public int width { get; set; }
		[NoAccessorMethod]
		public int x_res { get; set; }
		[NoAccessorMethod]
		public int y_res { get; set; }
	}
	[CCode (cheader_filename = "gmobile.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gm_rect_get_type ()")]
	[Compact]
	[Version (since = "0.0.1")]
	public class Rect {
		public int height;
		public int width;
		public int x;
		public int y;
	}
	[CCode (cheader_filename = "gmobile.h", cprefix = "GM_CORNER_POSITION_", has_type_id = false)]
	public enum CornerPosition {
		TOP_LEFT,
		TOP_RIGHT,
		BOTTOM_RIGHT,
		BOTTOM_LEFT
	}
	[CCode (cheader_filename = "gmobile.h", cprefix = "GM_ERROR_PARSING_", has_type_id = false)]
	[Version (since = "0.0.1")]
	public errordomain Error {
		[CCode (cname = "GM_ERROR_PARSING_FAILED")]
		ERROR_PARSING_FAILED;
		public static GLib.Quark quark ();
	}
	[CCode (array_length = false, array_null_terminated = true, cheader_filename = "gmobile.h")]
	[Version (since = "0.0.1")]
	public static string[] device_tree_get_compatibles (string sysfs_root) throws GLib.Error;
	[CCode (cheader_filename = "gmobile.h")]
	[Version (since = "0.0.1")]
	public static void init ();
	[CCode (array_length = false, array_null_terminated = true, cheader_filename = "gmobile.h")]
	[Version (since = "0.2.2")]
	public static string[]? list_devices ();
	[CCode (cheader_filename = "gmobile.h")]
	[Version (since = "0.4.0")]
	public static unowned string mcc_to_iso (string mcc) throws GLib.Error;
	[CCode (cheader_filename = "gmobile.h")]
	[Version (since = "0.0.1")]
	public static bool svg_path_get_bounding_box (string path, int x1, int x2, int y1, int y2) throws GLib.Error;
	[CCode (cheader_filename = "gmobile.h")]
	[Version (since = "0.0.1")]
	public static uint timeout_add_seconds_once_full (int priority, ulong seconds, owned GLib.SourceOnceFunc function);
	[CCode (cheader_filename = "gmobile.h")]
	[Version (since = "0.3.0")]
	public static uint wakeup_timeout_add_seconds_once_full (int priority, ulong seconds, owned GLib.SourceOnceFunc function) throws GLib.Error;
}
