![]() |
libdisplaydevice master
C++ library to modify display devices.
|
Windows implementation of DisplayPowerInterface. More...
#include <src/windows/include/display_device/windows/display_power.h>
Public Member Functions | |
| std::unique_ptr< DisplayPowerGuardInterface > | keepDisplayAwake (const std::string &reason) override |
| Keep displays awake until the returned guard is destroyed. | |
| bool | wakeDisplay (const std::string &display_name, std::chrono::milliseconds timeout) override |
| Ask the platform to wake a display before detection or capture. | |
| WinDisplayPower (std::shared_ptr< WinApiLayerInterface > w_api) | |
| Default constructor for the class. | |
Public Member Functions inherited from display_device::DisplayPowerInterface | |
| virtual | ~DisplayPowerInterface ()=default |
| Default virtual destructor. | |
Windows implementation of DisplayPowerInterface.
|
explicit |
Default constructor for the class.
| w_api | A pointer to the Windows API layer. Will throw on nullptr. |
|
nodiscardoverridevirtual |
Keep displays awake until the returned guard is destroyed.
| reason | Short human-readable reason for the platform power assertion. |
Implements display_device::DisplayPowerInterface.
|
nodiscardoverridevirtual |
Ask the platform to wake a display before detection or capture.
A successful result means the platform accepted the wake request and any platform-specific detection that this implementation can perform has passed. Some platforms cannot verify that the requested capture selector is awake, so callers should still retry their own capture-target enumeration after this method succeeds.
| display_name | Platform capture selector returned by SettingsManagerInterface::getDisplayName. |
| timeout | Maximum time to wait before the caller retries capture-target detection. |
Implements display_device::DisplayPowerInterface.