Crate displayz

Source
Expand description

A library to interact with the Windows API for display settings.

This library provides an abstraction around some winuser.h calls relevant for modifying display settings.

Structs§

Display
A struct that represents a display (index)
DisplayProperties
Contains the properties of a display
DisplaySet
A struct that represents a set of displays
DisplaySettings
Contains the settings of a display
Frequency
Position
Contains the position of a display
Resolution
Contains the resolution of a display

Enums§

DisplayError
Error type for the display module
DisplayPropertiesError
Error type for the display module
FixedOutput
Contains the fixed output of a display
Orientation
Contains the orientation of a display
ParseFixedOutputError
Errors that occur while parsing a fixed output from a string
ParseFrequencyError
ParseOrientationError
Errors that occur while parsing an orientation from a string
ParsePositionError
Errors that occur while parsing a position from a string
ParseResolutionError
Errors that occur while parsing a resolution from a string

Functions§

query_displays
Returns a list of all displays.
refresh
Refreshes the screen to apply the changes