Mir
mir_cursor_configuration.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 Lesser 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 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 
18 #ifndef MIR_TOOLKIT_MIR_CURSOR_H_
19 #define MIR_TOOLKIT_MIR_CURSOR_H_
20 
21 #include <mir_toolkit/common.h>
23 
29 
30 #ifdef __cplusplus
31 
35 extern "C" {
36 #endif
37 
43 
55 
67  int hotspot_y);
68 
69 #ifdef __cplusplus
70 }
72 #endif
73 
74 #endif /* MIR_TOOLKIT_MIR_CURSOR_H_ */
struct MirBufferStream MirBufferStream
Definition: client_types.h:45
void mir_cursor_configuration_destroy(MirCursorConfiguration *parameters)
Release resources assosciated with cursor parameters.
Definition: mir_cursor_api.cpp:60
mir::client::ClientBufferStream const * stream
Definition: cursor_configuration.h:40
MirCursorConfiguration * mir_cursor_configuration_from_name(char const *name)
Returns a new MirCursorConfiguration representing a named cursor from the system cursor theme...
Definition: mir_cursor_api.cpp:65
Definition: cursor_configuration.h:34
MirCursorConfiguration * mir_cursor_configuration_from_buffer_stream(MirBufferStream const *stream, int hotspot_x, int hotspot_y)
Returns a new cursor configuration tied to a given buffer stream.
Definition: mir_cursor_api.cpp:78
int hotspot_y
Definition: cursor_configuration.h:42
std::string name
Definition: cursor_configuration.h:39
int hotspot_x
Definition: cursor_configuration.h:41

Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Oct 8 16:20:16 UTC 2015