Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
pixel_format_selector.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2014 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 3 as
6  * published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Andreas Pokorny <andreas.pokorny@canonical.com>
17  */
18 
19 
20 #ifndef MIR_EXAMPLES_SELECT_PIXEL_FORMAT_H
21 #define MIR_EXAMPLES_SELECT_PIXEL_FORMAT_H
22 
24 
25 #include <memory>
26 
27 namespace mir
28 {
29 namespace examples
30 {
31 
38 {
39 public:
40  PixelFormatSelector(std::shared_ptr<graphics::DisplayConfigurationPolicy> const& base_policy,
41  bool with_alpha);
42  virtual void apply_to(graphics::DisplayConfiguration& conf);
43 private:
44  std::shared_ptr<graphics::DisplayConfigurationPolicy> const base_policy;
45  bool const with_alpha;
46 };
47 
48 }
49 }
50 
51 #endif
All things Mir.
Definition: aging_buffer.h:24
virtual void apply_to(graphics::DisplayConfiguration &conf)
Definition: pixel_format_selector.cpp:46
Example of a DisplayConfigurationPolicy that tries to find an opaque or transparent pixel format...
Definition: pixel_format_selector.h:37
Definition: display_configuration_policy.h:29
PixelFormatSelector(std::shared_ptr< graphics::DisplayConfigurationPolicy > const &base_policy, bool with_alpha)
Definition: pixel_format_selector.cpp:40
Interface to a configuration of display cards and outputs.
Definition: display_configuration.h:159

Copyright © 2012,2013 Canonical Ltd.
Generated on Fri Oct 10 14:07:14 UTC 2014