Class OutputConfiguration::Strategy¶
Defined in File output_configuration.h
Nested Relationships¶
This class is a nested type of Class OutputConfiguration.
Inheritance Relationships¶
Derived Type¶
public miral::OutputConfiguration::NullStrategy(Class OutputConfiguration::NullStrategy)
Class Documentation¶
-
class Strategy
Interface for customization of the output configuration applied to the server.
Remark
Since MirAL 6.1
Subclassed by miral::OutputConfiguration::NullStrategy
Public Functions
-
Strategy()
-
virtual void apply_configuration(std::span<mir::graphics::UserDisplayConfigurationOutput> outputs) = 0
Called when the server is about to apply a new configuration. The strategy can modify the configuration before it is applied.
- Parameters:
outputs – the modifiable output configuration data
-
virtual void confirm_configuration(std::span<mir::graphics::DisplayConfigurationOutput const> outputs) = 0
Called when the server applies a new configuration. The strategy can record the configuration, for example to write it to a log or a file.
- Parameters:
outputs – the new configuration
-
virtual ~Strategy()
-
Strategy()