libdisplaydevice latest
C++ library to modify display devices.
factory.h File Reference

Factory helpers for platform display device interfaces. More...

#include <chrono>
#include <memory>
#include <optional>
#include "audio_context_interface.h"
#include "display_power_interface.h"
#include "settings_manager_interface.h"
#include "settings_persistence_interface.h"
Include dependency graph for factory.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  display_device::SettingsManagerFactoryConfig
 Dependencies and platform-neutral options for creating a settings manager. More...
 

Functions

std::unique_ptr< DisplayPowerInterfacedisplay_device::makeDisplayPower ()
 Create the default display power manager for the current platform.
 
std::unique_ptr< SettingsManagerInterfacedisplay_device::makeSettingsManager (const SettingsManagerFactoryConfig &config={})
 Create the default settings manager for the current platform.
 

Detailed Description

Factory helpers for platform display device interfaces.

Function Documentation

◆ makeDisplayPower()

std::unique_ptr< DisplayPowerInterface > display_device::makeDisplayPower ( )
nodiscard

Create the default display power manager for the current platform.

Returns
A display power manager, or nullptr when the platform is unsupported.

◆ makeSettingsManager()

std::unique_ptr< SettingsManagerInterface > display_device::makeSettingsManager ( const SettingsManagerFactoryConfig & config = {})
nodiscard

Create the default settings manager for the current platform.

Parameters
configDependencies and platform-neutral options.
Returns
A settings manager, or nullptr when the platform is unsupported.