Mir
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
include
client
mir_toolkit
debug
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
21
#include <
mir_toolkit/mir_client_library.h
>
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
45
uint32_t
mir_debug_surface_current_buffer_id
(
MirSurface
*surface);
46
62
bool
mir_debug_surface_coords_to_screen
(
MirSurface
* surface,
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 */
mir_debug_surface_current_buffer_id
uint32_t mir_debug_surface_current_buffer_id(MirSurface *surface)
Get the ID of the surface's current buffer (only useful for debug purposes)
Definition:
mir_debug_api.cpp:24
MirSurface
Definition:
mir_surface.h:146
mir_debug_surface_coords_to_screen
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.
Definition:
mir_debug_api.cpp:34
mir_debug_surface_id
int mir_debug_surface_id(MirSurface *surface)
Return the ID of a surface (only useful for debug output).
Definition:
mir_debug_api.cpp:29
mir_client_library.h
Copyright © 2012-2015 Canonical Ltd.
Generated on Wed Mar 30 00:29:56 UTC 2016