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