Gm.Cutout¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r |
|||
r/w/co |
|||
r/w/co |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gm.Cutout(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A display cutout or notch.
A display cutout is an area of a display that is not usable for rendering e.g. because a camera or speaker is placed there. This includes so called “notches”. The are needs to be avoided when rendering. It is described by a SVG path. Each cutouts coordinate systems is located at the top left display corner in the displays natural orientation. Applications can query the area to avoid for rendering via the
boundsproperty so they don’t need to deal with the SVG path themselves.Added in version 0.0.2.
- classmethod new(path)¶
-
Create a new cutout based on the given SVG path.
Added in version 0.0.2.
- get_bounds()¶
- Returns:
The bounding box.
- Return type:
Gets the bounding box of the cutout.
Added in version 0.0.2.
- get_name()¶
- Returns:
The cutout’s name.
- Return type:
The name of the cutout.
Added in version 0.0.2.
Property Details¶
- Gm.Cutout.props.bounds¶
-
Rectangular bounds of the cutout
Added in version 0.0.2.
- Gm.Cutout.props.name¶
- Name:
name- Type:
- Default Value:
- Flags:
A name identifying the cutout.
Added in version 0.0.2.