Mir
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
include
client
mir_toolkit
events
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
23
#include <
mir_toolkit/events/event.h
>
24
25
#ifdef __cplusplus
26
30
extern
"C"
{
31
#endif
32
39
int
mir_window_output_event_get_dpi
(
MirWindowOutputEvent
const
* ev);
40
47
MirFormFactor
mir_window_output_event_get_form_factor
(
MirWindowOutputEvent
const
* ev);
48
56
float
mir_window_output_event_get_scale
(
MirWindowOutputEvent
const
* ev);
57
67
double
mir_window_output_event_get_refresh_rate
(
MirWindowOutputEvent
const
* ev);
68
76
uint32_t
mir_window_output_event_get_output_id
(
MirWindowOutputEvent
const
*ev);
77
78
#ifdef __cplusplus
79
}
81
#endif
82
83
#endif //MIR_TOOLKIT_WINDOW_OUTPUT_EVENT_H_
mir_window_output_event_get_scale
float mir_window_output_event_get_scale(MirWindowOutputEvent const *ev)
Retrieve the suggested scaling factor of the new output configuration of a MirWindowOutputEvent.
mir_window_output_event_get_output_id
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
MirFormFactor
Form factor associated with a physical output.
Definition:
common.h:405
mir_window_output_event_get_form_factor
MirFormFactor mir_window_output_event_get_form_factor(MirWindowOutputEvent const *ev)
Retrieve the form factor of the new output configuration of a MirWindowOutputEvent.
MirWindowOutputEvent
struct MirSurfaceOutputEvent MirWindowOutputEvent
Definition:
event.h:76
event.h
mir_window_output_event_get_dpi
int mir_window_output_event_get_dpi(MirWindowOutputEvent const *ev)
Retrieve the DPI of the new output configuration of a MirWindowOutputEvent.
mir_window_output_event_get_refresh_rate
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 May 10 10:41:27 UTC 2017