File: window_event.h

package info (click to toggle)
mir 2.25.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,104 kB
  • sloc: cpp: 192,777; xml: 13,784; ansic: 8,207; python: 1,304; sh: 794; makefile: 258
file content (46 lines) | stat: -rw-r--r-- 1,370 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
 * Copyright © Canonical Ltd.
 *
 * This program is free software: you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License version 2 or 3,
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef MIR_TOOLKIT_EVENTS_WINDOW_EVENT_H_
#define MIR_TOOLKIT_EVENTS_WINDOW_EVENT_H_

#include <mir_toolkit/events/event.h>

#ifdef __cplusplus
extern "C" {
#endif

/**
 * Retrieve the attribute index configured with a given MirWindowEvent
 *
 * \param [in] event The event
 * \return           The associated attribute
 */
MirWindowAttrib mir_window_event_get_attribute(MirWindowEvent const* event);

/**
 * Retrieve the new value of the associated attribute for a given MirWindowEvent
 *
 * \param [in] event The event
 * \return           The associated attribute value
 */
int mir_window_event_get_attribute_value(MirWindowEvent const* event);

#ifdef __cplusplus
}
#endif

#endif /* MIR_TOOLKIT_WINDOW_EVENT_H_ */