VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/platform/x11/VBoxX11Helper.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.8 KB
Line 
1/* $Id: VBoxX11Helper.h 76532 2018-12-30 06:08:06Z 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#ifndef RT_WITHOUT_PRAGMA_ONCE
21# pragma once
22#endif
23
24/* GUI includes: */
25#include "UILibraryDefs.h"
26
27
28/** X11: Known Window Manager types. */
29enum X11WMType
30{
31 X11WMType_Unknown,
32 X11WMType_Compiz,
33 X11WMType_GNOMEShell,
34 X11WMType_KWin,
35 X11WMType_Metacity,
36 X11WMType_Mutter,
37 X11WMType_Xfwm4,
38};
39
40
41/** X11: Determines and returns whether the compositing manager is running. */
42SHARED_LIBRARY_STUFF bool X11IsCompositingManagerRunning();
43
44/** X11: Determines and returns current Window Manager type. */
45SHARED_LIBRARY_STUFF X11WMType X11WindowManagerType();
46
47/** X11: Inits the screen saver save/restore mechanism. */
48SHARED_LIBRARY_STUFF void X11ScreenSaverSettingsInit();
49/** X11: Saves screen saver settings. */
50SHARED_LIBRARY_STUFF void X11ScreenSaverSettingsSave();
51/** X11: Restores previously saved screen saver settings. */
52SHARED_LIBRARY_STUFF void X11ScreenSaverSettingsRestore();
53/** X11: Returns true if XLib extension with name @p extensionName is avaible, false otherwise. */
54SHARED_LIBRARY_STUFF bool X11CheckExtension(const char *extensionName);
55
56#endif /* !___VBoxX11Helpers_h___ */
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use