Expand description
§df_displmgr — Cross-platform display management library
This crate provides the core abstractions for enumerating, querying, and configuring displays across Windows (CCD/GDI) and Linux (DRM/Wayland/KDE/udev).
§Architecture
UniversalTopology— trait for querying current display topologyOutputEditable— trait for modifying properties of a single outputNativeTopology— platform-resolved concrete implementation
§Platform backends
| Platform | Backend | Features |
|---|---|---|
| Windows | CCD | Profile persistence, advanced topology |
| Windows | GDI | Legacy fallback, wider compatibility |
| Linux | DRM | Direct kernel mode setting |
| Linux | Wayland | wlroots output management protocol |
| Linux | KDE | KScreen D-Bus integration |
| Linux | udev | sysfs/udevadm enumeration |
§Feature gates
ctrl_center— enables high-level activation logic (force_activate_by_monitor_name,activate_with_topology_restore, etc.)wgpu_types— enables WGPU integration for HDR pipelines
§License
Licensed under MIT at your option.
Re-exports§
pub use error::DisplayError;pub use error::DisplayResult;pub use traits::OutputEditable;pub use traits::UniversalTopology;pub use backends::windows::activate_display;pub use backends::windows::force_activate_by_monitor_name;pub use backends::windows::force_all;pub use backends::windows::ActivationResult;pub use backends::windows::WinDisplayManager;pub use crate::backends::NativeTopology;pub use types::*;
Modules§
- backends
- Platform-specific backend implementations for display configuration. Platform-specific backend implementations.
- error
- Error types for display configuration operations.
Centralized error types for the
df_displmgrcrate. - traits
- Traits for output editing and topology management. Trait definitions that establish the cross-platform display management contract.
- types
- Core data types for display configuration and topology.
Functions§
- activate_
with_ topology_ restore - Topology-aware activation: save current topology, force_all, restore, place target.