Mir
window_output_event.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2017 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  * Brandon Schaefer <brandon.schaefer@canonical.com>
18  */
19 
20 #ifndef MIR_TOOLKIT_WINDOW_OUTPUT_EVENT_H_
21 #define MIR_TOOLKIT_WINDOW_OUTPUT_EVENT_H_
22 
24 
25 #ifdef __cplusplus
26 
30 extern "C" {
31 #endif
32 
40 
48 
57 
68 
77 
78 #ifdef __cplusplus
79 }
81 #endif
82 
83 #endif //MIR_TOOLKIT_WINDOW_OUTPUT_EVENT_H_
float mir_window_output_event_get_scale(MirWindowOutputEvent const *ev)
Retrieve the suggested scaling factor of the new output configuration of a MirWindowOutputEvent.
uint32_t mir_window_output_event_get_output_id(MirWindowOutputEvent const *ev)
Retrieve the ID of the output this window is on from a MirWindowOutputEvent.
MirFormFactor
Form factor associated with a physical output.
Definition: common.h:405
MirFormFactor mir_window_output_event_get_form_factor(MirWindowOutputEvent const *ev)
Retrieve the form factor of the new output configuration of a MirWindowOutputEvent.
struct MirSurfaceOutputEvent MirWindowOutputEvent
Definition: event.h:76
int mir_window_output_event_get_dpi(MirWindowOutputEvent const *ev)
Retrieve the DPI of the new output configuration of a MirWindowOutputEvent.
double mir_window_output_event_get_refresh_rate(MirWindowOutputEvent const *ev)
Retrieve the maximum refresh rate of the output(s) associated with a MirWindowOutputEvent.

Copyright © 2012-2016 Canonical Ltd.
Generated on Wed Oct 11 22:26:23 UTC 2017