Class OutputConfiguration::NullStrategy

Nested Relationships

This class is a nested type of Class OutputConfiguration.

Inheritance Relationships

Base Type

Class Documentation

class NullStrategy : public miral::OutputConfiguration::Strategy

A strategy that does nothing.

Remark

Since MirAL 6.1

Public Functions

virtual void apply_configuration(std::span<mir::graphics::UserDisplayConfigurationOutput> outputs) override

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) override

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

~NullStrategy() override