mirror of
https://invent.kde.org/network/krfb
synced 2024-07-08 12:05:49 +00:00
All these files have been added to SVN by Alessandro Praduroux. He agreed on this change. CCMAIL: pradu@pradu.it svn path=/trunk/KDE/kdenetwork/krfb/; revision=734376
62 lines
1.3 KiB
C++
62 lines
1.3 KiB
C++
/* This file is part of the KDE project
|
|
Copyright (C) 2007 Alessandro Praduroux <pradu@pradu.it>
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public
|
|
License as published by the Free Software Foundation; either
|
|
version 2 of the License, or (at your option) any later version.
|
|
*/
|
|
#ifndef X11FRAMEBUFFER_H
|
|
#define X11FRAMEBUFFER_H
|
|
|
|
#include <framebuffer.h>
|
|
#include <QWidget>
|
|
|
|
class X11FrameBuffer;
|
|
|
|
class EvWidget: public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
EvWidget(X11FrameBuffer *x11fb);
|
|
|
|
protected:
|
|
bool x11Event ( XEvent * event );
|
|
|
|
private:
|
|
X11FrameBuffer *fb;
|
|
int xdamageBaseEvent;
|
|
};
|
|
|
|
/**
|
|
@author Alessandro Praduroux <pradu@pradu.it>
|
|
*/
|
|
class X11FrameBuffer : public FrameBuffer
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
X11FrameBuffer(WId id, QObject* parent);
|
|
|
|
~X11FrameBuffer();
|
|
|
|
virtual QList<QRect> modifiedTiles();
|
|
virtual int depth();
|
|
virtual int height();
|
|
virtual int width();
|
|
virtual int paddedWidth();
|
|
virtual void getServerFormat(rfbPixelFormat& format);
|
|
virtual void startMonitor();
|
|
virtual void stopMonitor();
|
|
|
|
|
|
void handleXDamage( XEvent *event);
|
|
private:
|
|
void cleanupRects();
|
|
void acquireEvents();
|
|
|
|
class P;
|
|
P * const d;
|
|
};
|
|
|
|
#endif
|