Skip to main content

Crate df_displmgr

Crate df_displmgr 

Source
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

§Platform backends

PlatformBackendFeatures
WindowsCCDProfile persistence, advanced topology
WindowsGDILegacy fallback, wider compatibility
LinuxDRMDirect kernel mode setting
LinuxWaylandwlroots output management protocol
LinuxKDEKScreen D-Bus integration
Linuxudevsysfs/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_displmgr crate.
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.