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 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_CLIENT_LIBRARY_DEBUG_H
19 #define MIR_CLIENT_LIBRARY_DEBUG_H
20 
23 
24 /* This header defines debug interfaces that aren't expected to be generally useful
25  * and do not have the same API-stability guarantees that the main API has */
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
36 int mir_debug_window_id(MirWindow *window);
37 
47 
48 #pragma GCC diagnostic push
49 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
50 
66 bool mir_debug_surface_coords_to_screen(MirSurface *surface,
67  int x, int y,
68  int* screen_x, int* screen_y)
69 MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_extension_window_coordinate_translation instead");
70 
71 int mir_debug_surface_id(MirSurface *surface)
72 MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_debug_window_id() instead");
73 
74 uint32_t mir_debug_surface_current_buffer_id(MirSurface *surface)
75 MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_debug_window_current_buffer_id() instead");
76 
77 #pragma GCC diagnostic pop
78 
79 #ifdef __cplusplus
80 }
81 #endif
82 
83 #endif /* MIR_CLIENT_LIBRARY_DEBUG_H */
struct MirSurface MirWindow
Definition: client_types.h:43
bool mir_debug_surface_coords_to_screen(MirSurface *surface, int x, int y, int *screen_x, int *screen_y) MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_extension_window_coordinate_translation instead")
Get the screen coordinates corresponding to a pair of surface coordinates.
#define MIR_FOR_REMOVAL_IN_VERSION_1(message)
Definition: deprecations.h:30
uint32_t mir_debug_window_current_buffer_id(MirWindow *window)
Get the ID of the window&#39;s current buffer (only useful for debug purposes)
uint32_t mir_debug_surface_current_buffer_id(MirSurface *surface) MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_debug_window_current_buffer_id() instead")
int mir_debug_window_id(MirWindow *window)
Return the ID of a window (only useful for debug output).
int mir_debug_surface_id(MirSurface *surface) MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_debug_window_id() instead")

Copyright © 2012-2019 Canonical Ltd.
Generated on Fri Dec 13 10:47:19 UTC 2019
This documentation is licensed under the GPL version 2 or 3.