2
* Copyright (C) 2005,2006,2007 by Siraj Razick <siraj@kde.org>
3
* Copyright (C) 2007 by Ivan Cukic <ivan.cukic(at)kde.org>
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2,
7
* or (at your option) any later version, as published by the Free
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details
15
* You should have received a copy of the GNU General Public
16
* License along with this program; if not, write to the
17
* Free Software Foundation, Inc.,
18
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24
#include <config-lancelot.h>
26
#ifdef LANCELOT_HAVE_COMPOSITING
30
#include <QMainWindow>
31
#include <QPaintDevice>
33
#include <QTextStream>
36
#include <X11/extensions/Xrender.h>
40
This is simple class to initialize a
41
X session and open the display. The class
42
has two member functions to find out
43
the visuals and the color map of the
49
explicit QtDisplay(char * display = 0, int screen = 0);
51
virtual void testDisplay();
54
Qt::HANDLE visual() {return Qt::HANDLE(_visualPtr); }
55
Qt::HANDLE colormap() {return Qt::HANDLE(_colormap); }
56
Display * display() {return _dpyPtr; }
68
#endif // LANCELOT_HAVE_COMPOSITING