gmobile Reference Manual
Packages
gmobile
Gm
gmobile
Description:
Content:
Namespaces:
Gm
Classes:
Cutout
-
A display cutout or notch.
DeviceInfo
-
Get device dependent information.
DisplayPanel
-
Physical properties of a display panel like size, cutouts and rounded corners.
Rect
-
A rectangle.
Enums:
CornerPosition
Error domains:
Error
-
Error codes returned by gmobile functions.
Methods:
public
string
[]
device_tree_get_compatibles
(
string
sysfs_root)
throws
Error
Read compatible machine types from `sysfs_root/firmware/devicetree/base/compatible` on Linux.
public
void
init
()
Call this function to initialize the library explicitly.
public
string
[]?
list_devices
()
List device tree names of known devices.
public
unowned
string
mcc_to_iso
(
string
mcc)
throws
Error
Get the ISO 3316-1 country code based on a given mobile country code (MCC).
public
bool
svg_path_get_bounding_box
(
string
path,
int
x1,
int
x2,
int
y1,
int
y2)
throws
Error
Returns the bounding box of an SVG path.
public
uint
timeout_add_seconds_once_full
(
int
priority,
ulong
seconds,
owned
SourceOnceFunc
function)
Sets a function to be called after a timeout with priority
priority
.
public
uint
wakeup_timeout_add_seconds_once_full
(
int
priority,
ulong
seconds,
owned
SourceOnceFunc
function)
throws
Error
Sets a function to be called after a timeout with the default priority,
g_priority_default
.