Mir
display_configuration_controller_wrapper.h
Go to the documentation of this file.
1/*
2 * Copyright (C) Canonical, Ltd.
3 *
4 * This program is free software: you can redistribute it and/or modify it under
5 * the terms of the GNU Lesser General Public License version 3, as published by
6 * the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranties of MERCHANTABILITY,
10 * SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#ifndef MIROIL_DISPLAY_CONFIGURATION_CONTROLLER_WRAPPER_H_
18#define MIROIL_DISPLAY_CONFIGURATION_CONTROLLER_WRAPPER_H_
19
20#include <memory>
21
22namespace mir { namespace shell { class DisplayConfigurationController; } }
23namespace mir { namespace graphics { class DisplayConfiguration; } }
24
25namespace miroil
26{
27
29{
30public:
31 DisplayConfigurationControllerWrapper(std::shared_ptr<mir::shell::DisplayConfigurationController> const & wrapped);
33
34 /**
35 * Set the base display configuration.
36 *
37 * This is the display configuration that is used by default, but will be
38 * overridden by a client's requested configuration if that client is focused.
39 *
40 * \param [in] conf The new display configuration to set
41 */
42 void set_base_configuration(std::shared_ptr<mir::graphics::DisplayConfiguration> const& conf);
43
44private:
45 std::shared_ptr<mir::shell::DisplayConfigurationController> const & wrapped;
46};
47
48}
49
50#endif //MIROIL_DISPLAY_CONFIGURATION_CONTROLLER_WRAPPER_H_
Definition: display_configuration_controller_wrapper.h:29
DisplayConfigurationControllerWrapper(std::shared_ptr< mir::shell::DisplayConfigurationController > const &wrapped)
void set_base_configuration(std::shared_ptr< mir::graphics::DisplayConfiguration > const &conf)
Set the base display configuration.
Definition: output.h:28
Definition: window_specification.h:32
Definition: runner.h:27
Definition: compositor.h:21

Copyright © 2012-2023 Canonical Ltd.
Generated on Tue 2 May 10:01:24 UTC 2023
This documentation is licensed under the GPL version 2 or 3.