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