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. */
|
---|
26 | enum 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. */
|
---|
39 | SHARED_LIBRARY_STUFF bool X11IsCompositingManagerRunning();
|
---|
40 |
|
---|
41 | /** X11: Determines and returns current Window Manager type. */
|
---|
42 | SHARED_LIBRARY_STUFF X11WMType X11WindowManagerType();
|
---|
43 |
|
---|
44 | /** X11: Inits the screen saver save/restore mechanism. */
|
---|
45 | SHARED_LIBRARY_STUFF void X11ScreenSaverSettingsInit();
|
---|
46 | /** X11: Saves screen saver settings. */
|
---|
47 | SHARED_LIBRARY_STUFF void X11ScreenSaverSettingsSave();
|
---|
48 | /** X11: Restores previously saved screen saver settings. */
|
---|
49 | SHARED_LIBRARY_STUFF void X11ScreenSaverSettingsRestore();
|
---|
50 | /** X11: Returns true if XLib extension with name @p extensionName is avaible, false otherwise. */
|
---|
51 | SHARED_LIBRARY_STUFF bool X11CheckExtension(const char *extensionName);
|
---|
52 |
|
---|
53 | #endif /* !___VBoxX11Helpers_h___ */
|
---|