KWindowSystem

kkeyserver_mac.h
1 /*
2  SPDX-FileCopyrightText: 2006 Marijn Kruisselbrink <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6 
7 #ifndef _KKEYSERVER_MAC_H
8 #define _KKEYSERVER_MAC_H
9 
10 #include <kwindowsystem_export.h>
11 
12 #include <QList>
13 
14 namespace KKeyServer
15 {
16 /**
17  * Extracts the symbol from the given Qt key, and converts it to an OSX symbol.
18  * @param keyQt the qt key code
19  * @param sym if successful, the symbol will be written here
20  * @return true if successful, false otherwise
21  */
22 KWINDOWSYSTEM_EXPORT bool keyQtToSymMac(int keyQt, int &sym);
23 
24 /**
25  * Extracts all the scancodes from the given Qt key. The returned values can change if a different
26  * keyboard layout is selected.
27  * @param keyQt the qt key code
28  * @param keyCodes if successful, a list of scancodes will be written here
29  * @return true if successful, false otherwise
30  */
31 KWINDOWSYSTEM_EXPORT bool keyQtToCodeMac(int keyQt, QList<uint> &keyCodes);
32 
33 /**
34  * Extracts the modifiers from the given Qt key and converts them in a mask of OSX modifiers.
35  * @param keyQt the qt key code
36  * @param mod if successful, the modifiers will be written here
37  * @return true if successful, false otherwise
38  */
39 KWINDOWSYSTEM_EXPORT bool keyQtToModMac(int keyQt, uint &mod);
40 }
41 
42 #endif // !_KKEY_SERVER_MAC_H
A collection of functions for the conversion of key presses and their modifiers from the window syste...
Definition: kkeyserver.cpp:14
KWINDOWSYSTEM_EXPORT bool keyQtToSymMac(int keyQt, int &sym)
Extracts the symbol from the given Qt key, and converts it to an OSX symbol.
KWINDOWSYSTEM_EXPORT bool keyQtToCodeMac(int keyQt, QList< uint > &keyCodes)
Extracts all the scancodes from the given Qt key.
KWINDOWSYSTEM_EXPORT bool keyQtToModMac(int keyQt, uint &mod)
Extracts the modifiers from the given Qt key and converts them in a mask of OSX modifiers.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Oct 21 2021 22:41:50 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.