[55401] | 1 | /* $Id: VBoxX11Helper.h 72678 2018-06-25 14:25:49Z vboxsync $ */
|
---|
[11429] | 2 | /** @file
|
---|
[52727] | 3 | * VBox Qt GUI - VBox X11 helper functions.
|
---|
[11429] | 4 | */
|
---|
| 5 |
|
---|
| 6 | /*
|
---|
[71544] | 7 | * Copyright (C) 2006-2018 Oracle Corporation
|
---|
[11429] | 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 |
|
---|
[56927] | 18 | #ifndef ___VBoxX11Helpers_h___
|
---|
| 19 | #define ___VBoxX11Helpers_h___
|
---|
[11429] | 20 |
|
---|
[71630] | 21 | /* GUI includes: */
|
---|
| 22 | #include "UILibraryDefs.h"
|
---|
[71544] | 23 |
|
---|
[71630] | 24 |
|
---|
[56929] | 25 | /** X11: Known Window Manager types. */
|
---|
| 26 | enum X11WMType
|
---|
| 27 | {
|
---|
| 28 | X11WMType_Unknown,
|
---|
[57101] | 29 | X11WMType_Compiz,
|
---|
| 30 | X11WMType_GNOMEShell,
|
---|
[56929] | 31 | X11WMType_KWin,
|
---|
[65796] | 32 | X11WMType_Metacity,
|
---|
[56929] | 33 | X11WMType_Mutter,
|
---|
[57101] | 34 | X11WMType_Xfwm4,
|
---|
[56929] | 35 | };
|
---|
| 36 |
|
---|
[71544] | 37 |
|
---|
[58880] | 38 | /** X11: Determines and returns whether the compositing manager is running. */
|
---|
[71630] | 39 | SHARED_LIBRARY_STUFF bool X11IsCompositingManagerRunning();
|
---|
[58880] | 40 |
|
---|
[56930] | 41 | /** X11: Determines and returns current Window Manager type. */
|
---|
[71630] | 42 | SHARED_LIBRARY_STUFF X11WMType X11WindowManagerType();
|
---|
[56930] | 43 |
|
---|
[56927] | 44 | /** X11: Inits the screen saver save/restore mechanism. */
|
---|
[71630] | 45 | SHARED_LIBRARY_STUFF void X11ScreenSaverSettingsInit();
|
---|
[56927] | 46 | /** X11: Saves screen saver settings. */
|
---|
[71630] | 47 | SHARED_LIBRARY_STUFF void X11ScreenSaverSettingsSave();
|
---|
[56927] | 48 | /** X11: Restores previously saved screen saver settings. */
|
---|
[71630] | 49 | SHARED_LIBRARY_STUFF void X11ScreenSaverSettingsRestore();
|
---|
[72678] | 50 | /** X11: Returns true if XLib extension with name @p extensionName is avaible, false otherwise. */
|
---|
| 51 | SHARED_LIBRARY_STUFF bool X11CheckExtension(const char *extensionName);
|
---|
[56927] | 52 |
|
---|
| 53 | #endif /* !___VBoxX11Helpers_h___ */
|
---|