Etterna
0.74.4
Loading...
Searching...
No Matches
src
archutils
Unix
X11Helper.h
1
/* Manages our X connection and window. */
2
#ifndef X11_HELPER_H
3
#define X11_HELPER_H
4
5
#include <X11/Xlib.h>
// Window
6
#include <X11/Xutil.h>
7
#include "Etterna/Models/Misc/DisplaySpec.h"
8
namespace
X11Helper {
9
// All functions in here that return a bool return true on success, and
10
// false on failure.
11
12
// Create the connection.
13
bool
14
OpenXConnection();
15
16
// Destroy the connection.
17
void
18
CloseXConnection();
19
20
// The current Display (connection). Initialized by the first call to
21
// OpenXConnection().
22
extern
Display* Dpy;
23
24
// The Window used by LowLevelWindow_X11 as the main window.
25
extern
Window Win;
26
27
// (Re)create the Window win.
28
bool
29
MakeWindow(Window& win,
30
int
screenNum,
31
int
depth,
32
Visual* visual,
33
int
width,
34
int
height,
35
bool
overrideRedirect);
36
void
37
SetWMState(
const
Window& root,
38
const
Window& win,
39
const
long
action,
40
const
Atom atom);
41
42
#ifdef HAVE_XINERAMA
43
bool
44
SetWMFullscreenMonitors(
const
DisplaySpec
& target);
45
#endif
46
};
47
48
#endif
DisplaySpec
The dimensions of the program.
Definition
DisplaySpec.h:48
Generated by
1.9.8