Gm.DisplayPanel¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
|||
r/w |
|||
r/w |
|||
r/w |
|||
r/w |
|||
r/w |
|||
r/w |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gm.DisplayPanel(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Physical properties of a display panel like size, cutouts and rounded corners.
New in version 0.0.1.
- classmethod new()¶
- Returns:
The new display panel object
- Return type:
Constructs a new display panel object.
New in version 0.0.1.
- classmethod new_from_data(data)¶
- Parameters:
data (
str
) – The panel’s data as JSON- Raises:
- Returns:
The new display panel object
- Return type:
Constructs a new display panel based on the given data. If that fails
NULL
is returned anderror
describes the error that occurred.New in version 0.0.1.
- classmethod new_from_resource(resource_name)¶
- Parameters:
resource_name (
str
) – A path to a gresource- Raises:
- Returns:
The new display panel object
- Return type:
Constructs a new display panel by fetching the data from the given
Gio.Resource
. If that failsNULL
is returned anderror
describes the error that occurred.New in version 0.0.1.
- get_border_radius()¶
- Returns:
The panel’s border radius.
- Return type:
Gets the panels border radius. 0 indicates rectangular corners. If given applies to all corners of the panel.
New in version 0.0.1.
- get_cutouts()¶
- Returns:
The display cutouts
- Return type:
Get the display cutouts.
New in version 0.0.1.
- get_height()¶
- Returns:
The panel’s height.
- Return type:
Gets the panels height in mm.
New in version 0.0.1.
- get_width()¶
- Returns:
The panel’s width.
- Return type:
Gets the panels width in mm.
New in version 0.0.1.
- get_x_res()¶
- Returns:
The x resolution.
- Return type:
Gets the panels resolution (in pixels) in the x direction
New in version 0.0.1.
Property Details¶
- Gm.DisplayPanel.props.border_radius¶
-
The border radius of the panel edges in device pixels If a single border radius isn’t enough use multiple [type`Cutout`].
New in version 0.0.1.
- Gm.DisplayPanel.props.cutouts¶
- Name:
cutouts
- Type:
- Default Value:
- Flags:
The display cutouts as
GListModel
of [class`Cutout`].New in version 0.0.1.
- Gm.DisplayPanel.props.height¶
-
The display height in millimeters
New in version 0.0.1.
- Gm.DisplayPanel.props.name¶
-
The name of the display
New in version 0.0.1.
- Gm.DisplayPanel.props.width¶
-
The display width in millimeters
New in version 0.0.1.
- Gm.DisplayPanel.props.x_res¶
-
The panel resolution in pixels in the x direction
New in version 0.0.1.