VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/platform/x11/VBoxX11Helper.h@ 74942

Last change on this file since 74942 was 72678, checked in by vboxsync, 6 years ago

FE/Qt: bugref:9197 In X11 check the RENDER extension before setting cursor

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1/* $Id: VBoxX11Helper.h 72678 2018-06-25 14:25:49Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - VBox X11 helper functions.
4 */
5
6/*
7 * Copyright (C) 2006-2018 Oracle Corporation
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
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.
16 */
17
18#ifndef ___VBoxX11Helpers_h___
19#define ___VBoxX11Helpers_h___
20
21/* GUI includes: */
22#include "UILibraryDefs.h"
23
24
25/** X11: Known Window Manager types. */
26enum X11WMType
27{
28 X11WMType_Unknown,
29 X11WMType_Compiz,
30 X11WMType_GNOMEShell,
31 X11WMType_KWin,
32 X11WMType_Metacity,
33 X11WMType_Mutter,
34 X11WMType_Xfwm4,
35};
36
37
38/** X11: Determines and returns whether the compositing manager is running. */
39SHARED_LIBRARY_STUFF bool X11IsCompositingManagerRunning();
40
41/** X11: Determines and returns current Window Manager type. */
42SHARED_LIBRARY_STUFF X11WMType X11WindowManagerType();
43
44/** X11: Inits the screen saver save/restore mechanism. */
45SHARED_LIBRARY_STUFF void X11ScreenSaverSettingsInit();
46/** X11: Saves screen saver settings. */
47SHARED_LIBRARY_STUFF void X11ScreenSaverSettingsSave();
48/** X11: Restores previously saved screen saver settings. */
49SHARED_LIBRARY_STUFF void X11ScreenSaverSettingsRestore();
50/** X11: Returns true if XLib extension with name @p extensionName is avaible, false otherwise. */
51SHARED_LIBRARY_STUFF bool X11CheckExtension(const char *extensionName);
52
53#endif /* !___VBoxX11Helpers_h___ */
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use