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 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 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>
24 
25 #ifdef __cplusplus
26 
30 extern "C" {
31 #endif
32 
33 #pragma GCC diagnostic push
34 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
35 
40 void mir_cursor_configuration_destroy(MirCursorConfiguration *parameters)
41 MIR_FOR_REMOVAL_IN_VERSION_1("MirCursorConfiguration is deprecated");
42 
54 MirCursorConfiguration *mir_cursor_configuration_from_name(char const* name)
55 MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_window_spec_set_cursor_name() instead");
56 
68 MirCursorConfiguration *mir_cursor_configuration_from_buffer_stream(MirBufferStream const* stream, int hotspot_x,
69  int hotspot_y)
70 MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_window_spec_set_cursor_render_surface instead");
71 
72 #pragma GCC diagnostic pop
73 #ifdef __cplusplus
74 }
76 #endif
77 
78 #endif /* MIR_TOOLKIT_MIR_CURSOR_H_ */
struct MirBufferStream MirBufferStream
Definition: client_types.h:49
MirCursorConfiguration * mir_cursor_configuration_from_name(char const *name) MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_window_spec_set_cursor_name() instead")
Returns a new MirCursorConfiguration representing a named cursor from the system cursor theme.
#define MIR_FOR_REMOVAL_IN_VERSION_1(message)
Definition: deprecations.h:30
MirCursorConfiguration * mir_cursor_configuration_from_buffer_stream(MirBufferStream const *stream, int hotspot_x, int hotspot_y) MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_window_spec_set_cursor_render_surface instead")
Returns a new cursor configuration tied to a given buffer stream.
void mir_cursor_configuration_destroy(MirCursorConfiguration *parameters) MIR_FOR_REMOVAL_IN_VERSION_1("MirCursorConfiguration is deprecated")
Release resources assosciated with cursor parameters.
char const * name
Definition: client_types.h:177

Copyright © 2012-2019 Canonical Ltd.
Generated on Fri Feb 1 22:50:25 UTC 2019
This documentation is licensed under the GPL version 2 or 3.