Mir
include
server
mir
input
cursor_images.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 it
5
* under the terms of the GNU General Public License version 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: Robert Carr <robert.carr@canonical.com>
17
*/
18
19
20
#ifndef MIR_INPUT_CURSOR_IMAGES_H_
21
#define MIR_INPUT_CURSOR_IMAGES_H_
22
23
#include "
mir/geometry/size.h
"
24
25
#include <memory>
26
#include <string>
27
28
namespace
mir
29
{
30
namespace
graphics
31
{
32
class
CursorImage;
33
}
34
35
namespace
input
36
{
38
geometry::Size
const
default_cursor_size
{
geometry::Width
{24},
geometry::Height
{24}};
39
40
class
CursorImages
41
{
42
public
:
43
virtual
~
CursorImages
() =
default
;
44
47
virtual
std::shared_ptr<graphics::CursorImage> image(
std::string
const
& cursor_name,
48
geometry::Size
const
& size) = 0;
49
50
protected
:
51
CursorImages
() =
default
;
52
CursorImages
(
CursorImages
const
&) =
delete
;
53
CursorImages
& operator=(
CursorImages
const
&) =
delete
;
54
};
55
}
56
}
57
58
#endif
/* MIR_INPUT_CURSOR_IMAGES_H_ */
mir::geometry::Size
Definition:
size.h:30
mir
Definition:
as_render_target.h:27
mir::input::CursorImages
Definition:
cursor_images.h:40
mir::OptionType::string
mir::input::default_cursor_size
geometry::Size const default_cursor_size
CursorImages is used to lookup cursor images from the system theme.
Definition:
cursor_images.h:38
size.h
mir::geometry::detail::IntWrapper< struct WidthTag >
Copyright © 2012-2016 Canonical Ltd.
Generated on Mon Jun 5 11:07:25 UTC 2017