Mir
stub_cursor_image.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2015 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License version 2 or 3,
6  * as 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: Alberto Aguirre <alberto.aguirre@canonical.com>
17  */
18 
19 #ifndef MIR_TEST_DOUBLES_STUB_CURSOR_IMAGE_H_
20 #define MIR_TEST_DOUBLES_STUB_CURSOR_IMAGE_H_
21 
22 #include "mir/graphics/cursor_image.h"
23 
24 namespace mir
25 {
26 namespace test
27 {
28 namespace doubles
29 {
30 
31 struct StubCursorImage : public mir::graphics::CursorImage
32 {
33  void const* as_argb_8888() const override { return nullptr; }
34  geometry::Size size() const override { return geometry::Size{16, 16}; }
35  geometry::Displacement hotspot() const override { return geometry::Displacement{0, 0}; }
36 };
37 
38 }
39 }
40 } // namespace mir
41 
42 #endif /* MIR_TEST_DOUBLES_STUB_CURSOR_H_ */
Definition: size.h:30
AutoUnblockThread is a helper thread class that can gracefully shutdown at destruction time...
Definition: sw_splash.h:26
geometry::Size size() const override
Definition: stub_cursor_image.h:34
geometry::Displacement hotspot() const override
Definition: stub_cursor_image.h:35
Definition: stub_cursor_image.h:31
Definition: displacement.h:32
void const * as_argb_8888() const override
Definition: stub_cursor_image.h:33

Copyright © 2012-2017 Canonical Ltd.
Generated on Mon Oct 30 19:44:55 UTC 2017