Warning, file /frameworks/kwindowsystem/src/platforms/osx/kkeyserver_mac.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 SPDX-FileCopyrightText: 2006 Marijn Kruisselbrink <m.kruisselbrink@student.tue.nl> 0003 0004 SPDX-License-Identifier: LGPL-2.1-or-later 0005 */ 0006 0007 #ifndef _KKEYSERVER_MAC_H 0008 #define _KKEYSERVER_MAC_H 0009 0010 #include <kwindowsystem_export.h> 0011 0012 #include <QList> 0013 0014 namespace KKeyServer 0015 { 0016 /** 0017 * Extracts the symbol from the given Qt key, and converts it to an OSX symbol. 0018 * @param keyQt the qt key code 0019 * @param sym if successful, the symbol will be written here 0020 * @return true if successful, false otherwise 0021 */ 0022 KWINDOWSYSTEM_EXPORT bool keyQtToSymMac(int keyQt, int &sym); 0023 0024 /** 0025 * Extracts all the scancodes from the given Qt key. The returned values can change if a different 0026 * keyboard layout is selected. 0027 * @param keyQt the qt key code 0028 * @param keyCodes if successful, a list of scancodes will be written here 0029 * @return true if successful, false otherwise 0030 */ 0031 KWINDOWSYSTEM_EXPORT bool keyQtToCodeMac(int keyQt, QList<uint> &keyCodes); 0032 0033 /** 0034 * Extracts the modifiers from the given Qt key and converts them in a mask of OSX modifiers. 0035 * @param keyQt the qt key code 0036 * @param mod if successful, the modifiers will be written here 0037 * @return true if successful, false otherwise 0038 */ 0039 KWINDOWSYSTEM_EXPORT bool keyQtToModMac(int keyQt, uint &mod); 0040 } 0041 0042 #endif // !_KKEY_SERVER_MAC_H