Module video

Source
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.
TearingMode
The tearing mode of a connector.
VrrMode
The VRR mode of a connector.

Enums§

GfxApi
A graphics API.
Transform
A transformation.

Traits§

ToConnectorId
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.