Mir
include
client
mir_toolkit
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
>
22
#include <
mir_toolkit/client_types.h
>
23
28
typedef
struct
MirCursorConfiguration
MirCursorConfiguration
;
29
30
#ifdef __cplusplus
31
35
extern
"C"
{
36
#endif
37
42
void
mir_cursor_configuration_destroy
(
MirCursorConfiguration
*parameters);
43
54
MirCursorConfiguration
*
mir_cursor_configuration_from_name
(
char
const
* name);
55
66
MirCursorConfiguration
*
mir_cursor_configuration_from_buffer_stream
(
MirBufferStream
const
* stream,
int
hotspot_x,
67
int
hotspot_y);
68
69
#ifdef __cplusplus
70
}
72
#endif
73
74
#endif
/* MIR_TOOLKIT_MIR_CURSOR_H_ */
MirBufferStream
struct MirBufferStream MirBufferStream
Definition:
client_types.h:46
MirCursorConfiguration
struct MirCursorConfiguration MirCursorConfiguration
Opaque structure containing cursor parameterization.
Definition:
mir_cursor_configuration.h:28
mir_cursor_configuration_destroy
void mir_cursor_configuration_destroy(MirCursorConfiguration *parameters)
Release resources assosciated with cursor parameters.
mir_cursor_configuration_from_name
MirCursorConfiguration * mir_cursor_configuration_from_name(char const *name)
Returns a new MirCursorConfiguration representing a named cursor from the system cursor theme...
client_types.h
mir_cursor_configuration_from_buffer_stream
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.
common.h
Copyright © 2012-2016 Canonical Ltd.
Generated on Sat Dec 3 12:48:59 UTC 2016