Gm.DeviceInfo

g GObject.Object GObject.Object Gm.DeviceInfo Gm.DeviceInfo GObject.Object->Gm.DeviceInfo

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (compatibles)

get_display_panel ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

compatibles

[str]

r/w/co

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Gm.DeviceInfo(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Gm.DeviceInfoClass

Get device dependent information.

Allows to query device dependent information from different sources (currently we only look a the built-in gresources).

The lookups are currently based on device tree compatibles. See [func`device_tree_get_compatibles`].

New in version 0.0.1.

classmethod new(compatibles)
Parameters:

compatibles (str) – device tree compatibles

Returns:

The known device information

Return type:

Gm.DeviceInfo

Gets device information based on the passed in device tree compatibles.

New in version 0.0.1.

get_display_panel()
Returns:

The display panel information

Return type:

Gm.DisplayPanel

Gets display panel information. Queries the database for the best matching panel based on the device’s compatibles.

New in version 0.0.1.

Property Details

Gm.DeviceInfo.props.compatibles
Name:

compatibles

Type:

[str]

Default Value:

[]

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The compatibles to look up device information for.

New in version 0.0.1.