2014-02-10 18:54:46 +00:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
2012-12-26 18:12:26 +00:00
|
|
|
|
2014-02-10 18:54:46 +00:00
|
|
|
#pragma once
|
2012-12-26 18:12:26 +00:00
|
|
|
|
2014-03-12 19:33:41 +00:00
|
|
|
#include <string>
|
2014-08-09 13:49:45 +00:00
|
|
|
#include <thread>
|
2012-12-26 18:12:26 +00:00
|
|
|
#include <X11/keysym.h>
|
2014-02-19 01:56:29 +00:00
|
|
|
#include <X11/Xlib.h>
|
2013-04-20 17:19:03 +00:00
|
|
|
#include <X11/Xutil.h>
|
2012-12-26 18:12:26 +00:00
|
|
|
|
|
|
|
class cX11Window
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
void XEventThread();
|
2014-08-09 13:49:45 +00:00
|
|
|
std::thread xEventThread;
|
|
|
|
Colormap colormap;
|
2012-12-26 18:12:26 +00:00
|
|
|
public:
|
2014-08-09 13:49:45 +00:00
|
|
|
void Initialize(Display *dpy);
|
|
|
|
Window CreateXWindow(Window parent, XVisualInfo *vi);
|
2014-08-30 16:41:21 +00:00
|
|
|
void DestroyXWindow();
|
2014-08-09 13:49:45 +00:00
|
|
|
|
|
|
|
Display *dpy;
|
|
|
|
Window win;
|
2012-12-26 18:12:26 +00:00
|
|
|
};
|