Mir
surface.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2013 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_CLIENT_LIBRARY_DEBUG_H
19 #define MIR_CLIENT_LIBRARY_DEBUG_H
20 
22 
23 /* This header defines debug interfaces that aren't expected to be generally useful
24  * and do not have the same API-stability guarantees that the main API has */
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
35 int mir_debug_surface_id(MirSurface *surface);
36 
46 
63  int x, int y,
64  int* screen_x, int* screen_y);
65 
66 #ifdef __cplusplus
67 }
68 #endif
69 
70 #endif /* MIR_CLIENT_LIBRARY_DEBUG_H */
uint32_t mir_debug_surface_current_buffer_id(MirSurface *surface)
Get the ID of the surface&#39;s current buffer (only useful for debug purposes)
bool mir_debug_surface_coords_to_screen(MirSurface *surface, int x, int y, int *screen_x, int *screen_y)
Get the screen coordinates corresponding to a pair of surface coordinates.
int mir_debug_surface_id(MirSurface *surface)
Return the ID of a surface (only useful for debug output).
struct MirSurface MirSurface
Definition: client_types.h:41

Copyright © 2012-2016 Canonical Ltd.
Generated on Sat Dec 3 12:48:59 UTC 2016