Libxfce4windowing.Monitor¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r |
Physical/virtual connector name |
||
r |
Human-readable description |
||
r |
UI fractional scaling factor |
||
r |
Monitor’s |
||
r |
Physical height of the monitor in millimeters |
||
r |
Opaque, hopefully-unique monitor identifier |
||
r |
If this is the primary monitor |
||
r |
Coordinates and size of the monitor in scaled logical pixels |
||
r |
Manufacturer name |
||
r |
Product model name |
||
r |
Coordinates and size of the monitor in physical device pixels |
||
r |
Current refresh rate, in millihertz |
||
r |
UI scaling factor |
||
r |
Product serial number |
||
r |
Hardware subpixel layout |
||
r |
Rotation and reflection of the monitor’s contents |
||
r |
Physical width of the monitor in millimeters |
||
r |
Monitor workarea in scaled logical pixels |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Libxfce4windowing.Monitor(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
- get_connector()¶
- Returns:
A string owned by self.
- Return type:
Returns the name of the physical connector this monitor is connected to.
This might be a string such as “eDP-1”, “DP-3”, or “HDMI-2”. Note that in environments where the monitor is “virtual”, a synthetic connector name may be returned.
Added in version 4.19.4.
- get_description()¶
- Returns:
A string owned by self.
- Return type:
Returns a human-readable description of this monitor, suitable for displaying in a user interface.
Added in version 4.19.4.
- get_fractional_scale()¶
- Returns:
A positive fractional scale.
- Return type:
Returns the monitor’s scaling factor.
Added in version 4.19.4.
- get_gdk_monitor()¶
- Returns:
A
Gdk.Monitor.- Return type:
Returns the
Gdk.Monitorthat corresponds to self.Added in version 4.19.4.
- get_identifier()¶
- Returns:
A string owned by self.
- Return type:
Retrieves an opaque identifier for this monitor. The identifier can usually be relied upon to uniquely identify this monitor (even if you have multiple identical monitors of the same make and model), assuming the monitor’s hardware is set up properly.
This identifier should also be stable across application and machine restarts.
If the monitor’s hardware is not set up properly, the identifier may not be unique. Unfortunately, this library cannot determine when this is the case.
Added in version 4.19.4.
- get_logical_geometry()¶
- Returns:
- Return type:
logical_geometry:
Gdk.Rectangle
Retrieves the position and size of the monitor in logical application pixels, which are affected by the monitor’s fractional scale factor.
Added in version 4.19.4.
- get_make()¶
-
Returns the monitor’s manufacturer’s name, if available.
Added in version 4.19.4.
- get_model()¶
-
Returns the monitor’s product model name, if available.
Added in version 4.19.4.
- get_physical_geometry()¶
- Returns:
- Return type:
physical_geometry:
Gdk.Rectangle
Retrieves the position and size of the monitor in physical device pixels.
Added in version 4.19.4.
- get_physical_size()¶
- Returns:
- width_mm:
an unsigned integer.
- height_mm:
an unsigned integer.
- Return type:
Retrieves the physical width and height of the monitor in millimeters.
Added in version 4.19.4.
- get_refresh()¶
- Returns:
A non-negative integer in mHz.
- Return type:
Returns the monitor’s current refresh rate, in millihertz.
Added in version 4.19.4.
- get_scale()¶
- Returns:
A positive integer scale.
- Return type:
Returns the monitor’s scaling factor, as an integer.
Added in version 4.19.4.
- get_serial()¶
-
Returns the monitor’s serial number, if available. Note that some manufacturers do not program their monitor’s hardware with unique serial numbers.
Added in version 4.19.4.
- get_subpixel()¶
- Returns:
A value from the
Libxfce4windowing.MonitorSubpixelenum.- Return type:
Returns the subpixel ordering of self.
Added in version 4.19.4.
- get_transform()¶
- Returns:
A value from the
Libxfce4windowing.MonitorTransformenum.- Return type:
Returns the rotation and reflection transform set on self.
Added in version 4.19.4.
- get_workarea()¶
- Returns:
- Return type:
workarea:
Gdk.Rectangle
Retrieves the workarea for self, which may exclude regions of the screen for windows such as panels or docks.
The returned geometry is in logical application pixels, which are affected by the monitor’s integer scale factor. The origin is set to the top-left corner of the monitor.
Added in version 4.19.4.
Property Details¶
- Libxfce4windowing.Monitor.props.connector¶
-
Physical/virtual connector name.
Added in version 4.19.4.
- Libxfce4windowing.Monitor.props.description¶
-
Human-readable description.
Added in version 4.19.4.
- Libxfce4windowing.Monitor.props.fractional_scale¶
-
UI fractional scaling factor.
Added in version 4.19.4.
- Libxfce4windowing.Monitor.props.gdk_monitor¶
- Name:
gdk-monitor- Type:
- Default Value:
- Flags:
The
Gdk.Monitorcorresponding to this monitor.Added in version 4.19.4.
- Libxfce4windowing.Monitor.props.height_mm¶
-
Physical height of the monitor in millimeters.
Added in version 4.19.4.
- Libxfce4windowing.Monitor.props.identifier¶
-
Opaque, hopefully-unique monitor identifier.
Added in version 4.19.4.
- Libxfce4windowing.Monitor.props.is_primary¶
-
Whether or not this monitor is the primary monitor.
Added in version 4.19.4.
- Libxfce4windowing.Monitor.props.logical_geometry¶
- Name:
logical-geometry- Type:
- Default Value:
- Flags:
Coordinates and size of the monitor in scaled logical pixels.
Added in version 4.19.4.
- Libxfce4windowing.Monitor.props.make¶
-
Manufacturer name.
Added in version 4.19.4.
- Libxfce4windowing.Monitor.props.model¶
-
Product model name.
Added in version 4.19.4.
- Libxfce4windowing.Monitor.props.physical_geometry¶
- Name:
physical-geometry- Type:
- Default Value:
- Flags:
Coordinates and size of the monitor in physical device pixels.
Added in version 4.19.4.
- Libxfce4windowing.Monitor.props.refresh¶
-
Current refresh rate, in millihertz.
Added in version 4.19.4.
- Libxfce4windowing.Monitor.props.scale¶
-
UI scaling factor.
Added in version 4.19.4.
- Libxfce4windowing.Monitor.props.serial¶
-
Product serial number.
Added in version 4.19.4.
- Libxfce4windowing.Monitor.props.subpixel¶
- Name:
subpixel- Type:
- Default Value:
- Flags:
Hardware subpixel layout.
Added in version 4.19.4.
- Libxfce4windowing.Monitor.props.transform¶
- Name:
transform- Type:
- Default Value:
- Flags:
Rotation and reflection of the monitor’s contents
- Libxfce4windowing.Monitor.props.width_mm¶
-
Physical width of the monitor in millimeters.
Added in version 4.19.4.
- Libxfce4windowing.Monitor.props.workarea¶
- Name:
workarea- Type:
- Default Value:
- Flags:
Monitor workarea in scaled logical pixels