VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/platform/x11/XKeyboard.h@ 76532

Last change on this file since 76532 was 76532, checked in by vboxsync, 5 years ago

Frontends: scm --fix-header-guards. bugref:9344

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
RevLine 
[55401]1/* $Id: XKeyboard.h 76532 2018-12-30 06:08:06Z vboxsync $ */
[382]2/** @file
[52727]3 * VBox Qt GUI - Declarations of Linux-specific keyboard functions.
[382]4 */
5
6/*
[71540]7 * Copyright (C) 2006-2018 Oracle Corporation
[382]8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
[5999]12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
[382]16 */
17
[71540]18#ifndef ___XKeyboard_h___
19#define ___XKeyboard_h___
[76532]20#ifndef RT_WITHOUT_PRAGMA_ONCE
21# pragma once
22#endif
[382]23
[71630]24/* GUI includes: */
25#include "UILibraryDefs.h"
26
[58943]27/* Forward declarations: */
28class QString;
29typedef struct _XDisplay Display;
[21711]30
[71540]31/** Initializes the X keyboard subsystem. */
[71630]32SHARED_LIBRARY_STUFF void initMappedX11Keyboard(Display *pDisplay, const QString &remapScancodes);
[58943]33
[71540]34/** Handles native XKey events. */
[71630]35SHARED_LIBRARY_STUFF unsigned handleXKeyEvent(Display *pDisplay, unsigned int iDetail);
[71540]36
37/** Handles log requests from initXKeyboard after release logging is started. */
[71630]38SHARED_LIBRARY_STUFF void doXKeyboardLogging(Display *pDisplay);
[71540]39
40/** Wraps for the XkbKeycodeToKeysym(3) API which falls back to the deprecated XKeycodeToKeysym(3) if it is unavailable. */
[71630]41SHARED_LIBRARY_STUFF unsigned long wrapXkbKeycodeToKeysym(Display *pDisplay, unsigned char cCode,
42 unsigned int cGroup, unsigned int cIndex);
[382]43
[71540]44#endif /* !___XKeyboard_h___ */
[26714]45
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use