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_window_id(MirWindow *window);
36 
46 
47 #pragma GCC diagnostic push
48 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
49 
65 bool mir_debug_surface_coords_to_screen(MirSurface *surface,
66  int x, int y,
67  int* screen_x, int* screen_y)
68 __attribute__((deprecated("Use mir_extension_window_coordinate_translation instead")));
69 
70 int mir_debug_surface_id(MirSurface *surface)
71 __attribute__((deprecated("Use mir_debug_window_id() instead")));
72 
73 uint32_t mir_debug_surface_current_buffer_id(MirSurface *surface)
74 __attribute__((deprecated("Use mir_debug_window_current_buffer_id() instead")));
75 
76 #pragma GCC diagnostic pop
77 
78 #ifdef __cplusplus
79 }
80 #endif
81 
82 #endif /* MIR_CLIENT_LIBRARY_DEBUG_H */
struct MirSurface MirWindow
Definition: client_types.h:42
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) __attribute__((deprecated("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) __attribute__((deprecated("Use mir_debug_window_id() instead")))
MirConnectedCallback mir_connected_callback __attribute__((deprecated("Use MirConnectedCallback instead")))
Release a platform message.
Definition: client_types.h:85
bool mir_debug_surface_coords_to_screen(MirSurface *surface, int x, int y, int *screen_x, int *screen_y) __attribute__((deprecated("Use mir_extension_window_coordinate_translation instead")))
Get the screen coordinates corresponding to a pair of surface coordinates.

Copyright © 2012-2016 Canonical Ltd.
Generated on Mon Mar 27 12:06:55 UTC 2017