Expand description
Tools for configuring graphics cards and monitors.
Modules§
- connector_
type - Module containing all known connector types.
Structs§
- Connector
- A connector that is potentially connected to an output device.
- DrmDevice
- A Direct Rendering Manager (DRM) device.
- Format
- A graphics format.
- Mode
- The mode of a connector.
- Tearing
Mode - The tearing mode of a connector.
- VrrMode
- The VRR mode of a connector.
Enums§
Traits§
- ToConnector
Id - A type that can be converted to a
(ConnectorType, idx)
tuple.
Functions§
- connectors
- drm_
devices - Returns all available DRM devices.
- get_
connector - Returns the connector with the given id.
- on_
connector_ connected - Sets the callback to be called when a connector becomes connected to an output device.
- on_
connector_ disconnected - Sets the callback to be called when a connector is disconnected from an output device.
- on_
drm_ device_ removed - Sets the callback to be called when a DRM device is removed.
- on_
graphics_ initialized - Sets the callback to be called when the graphics of the compositor have been initialized.
- on_
new_ connector - Sets the callback to be called when a new connector appears.
- on_
new_ drm_ device - Sets the callback to be called when a new DRM device appears.
- set_
direct_ scanout_ enabled - Enables or disables direct scanout of client surfaces.
- set_
gfx_ api - Sets the default graphics API.
- set_
tearing_ mode - Sets the default tearing mode.
- set_
vrr_ cursor_ hz - Sets the VRR cursor refresh rate.
- set_
vrr_ mode - Sets the default VRR mode.