KWindowSystem

kkeyserver_win.h
1 /*
2  SPDX-FileCopyrightText: 2008 Carlo Segato <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6 
7 #ifndef _KKEYSERVER_WIN_H
8 #define _KKEYSERVER_WIN_H
9 
10 #include <QtGlobal>
11 #include <kwindowsystem_export.h>
12 
13 namespace KKeyServer
14 {
15 /**
16  * Extracts the modifiers from the given Qt key and
17  * converts them in a mask of Windows modifiers.
18  * @param keyQt the qt key code
19  * @param mod if successful, the modifiers will be written here
20  * @return true if successful, false otherwise
21  */
22 KWINDOWSYSTEM_EXPORT bool keyQtToModWin(int keyQt, uint *mod);
23 
24 KWINDOWSYSTEM_EXPORT bool modWinToKeyQt(uint mod, int *keyQt);
25 
26 /**
27  * Extracts the symbol from the given Qt key and
28  * converts it to a Windows symbol.
29  * @param keyQt the qt key code
30  * @param sym if successful, the symbol will be written here
31  * @return true if successful, false otherwise
32  */
33 KWINDOWSYSTEM_EXPORT bool keyQtToCodeWin(int keyQt, uint *sym);
34 
35 KWINDOWSYSTEM_EXPORT bool codeWinToKeyQt(uint sym, int *keyQt);
36 }
37 
38 #endif
bool keyQtToCodeWin(int keyQt, uint *sym)
Extracts the symbol from the given Qt key and converts it to a Windows symbol.
A collection of functions for the conversion of key presses and their modifiers from the window syste...
Definition: kkeyserver.cpp:14
bool keyQtToModWin(int keyQt, uint *mod)
Extracts the modifiers from the given Qt key and converts them in a mask of Windows modifiers...
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Oct 15 2021 22:41:49 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.