Mir
surface_output_event.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2015 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  * Authored by: Christopher James Halse Rogers <christopher.halse.rogers@canonical.com>
17  */
18 
19 #ifndef MIR_TOOLKIT_SURFACE_OUTPUT_EVENT_H_
20 #define MIR_TOOLKIT_SURFACE_OUTPUT_EVENT_H_
21 
23 
24 #ifdef __cplusplus
25 
29 extern "C" {
30 #endif
31 
32 // Ignore use of deprecate MirSurfaceOutputEvent typedef in deprecated functions (for now)
33 #pragma GCC diagnostic push
34 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
35 
41 int mir_surface_output_event_get_dpi(MirSurfaceOutputEvent const* ev)
42 __attribute__ ((deprecated("use mir_window_output_event_get_dpi instead")));
43 
50 MirFormFactor mir_surface_output_event_get_form_factor(MirSurfaceOutputEvent const* ev)
51 __attribute__ ((deprecated("use mir_window_output_event_get_form_factor instead")));
52 
60 float mir_surface_output_event_get_scale(MirSurfaceOutputEvent const* ev)
61 __attribute__ ((deprecated("use mir_window_output_event_get_scale instead")));
62 
72 double mir_surface_output_event_get_refresh_rate(MirSurfaceOutputEvent const* ev)
73 __attribute__ ((deprecated("use mir_window_output_event_get_refresh_rate instead")));
74 
82 uint32_t mir_surface_output_event_get_output_id(MirSurfaceOutputEvent const *ev)
83 __attribute__ ((deprecated("use mir_window_output_event_get_output_id instead")));
84 
85 #pragma GCC diagnostic pop
86 
87 #ifdef __cplusplus
88 }
90 #endif
91 
92 #endif //MIR_TOOLKIT_SURFACE_OUTPUT_EVENT_H_
float mir_surface_output_event_get_scale(MirSurfaceOutputEvent const *ev) __attribute__((deprecated("use mir_window_output_event_get_scale instead")))
Retrieve the suggested scaling factor of the new output configuration of a MirSurfaceOutputEvent.
int mir_surface_output_event_get_dpi(MirSurfaceOutputEvent const *ev) __attribute__((deprecated("use mir_window_output_event_get_dpi instead")))
Retrieve the DPI of the new output configuration of a MirSurfaceOutputEvent.
MirFormFactor mir_surface_output_event_get_form_factor(MirSurfaceOutputEvent const *ev) __attribute__((deprecated("use mir_window_output_event_get_form_factor instead")))
Retrieve the form factor of the new output configuration of a MirSurfaceOutputEvent.
MirFormFactor
Form factor associated with a physical output.
Definition: common.h:403
uint32_t mir_surface_output_event_get_output_id(MirSurfaceOutputEvent const *ev) __attribute__((deprecated("use mir_window_output_event_get_output_id instead")))
Retrieve the ID of the output this surface is on from a MirSurfaceOutputEvent.
MirConnectedCallback mir_connected_callback __attribute__((deprecated("Use MirConnectedCallback instead")))
Release a platform message.
Definition: client_types.h:85
double mir_surface_output_event_get_refresh_rate(MirSurfaceOutputEvent const *ev) __attribute__((deprecated("use mir_window_output_event_get_refresh_rate instead")))
Retrieve the maximum refresh rate of the output(s) associated with a MirSurfaceOutputEvent.

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