Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
ScreenXLib.h
1// Author: Kang Lin <kl222@126.com>
2
3#ifndef CSCREENXLIB_H
4#define CSCREENXLIB_H
5
6#include "Screen.h"
7#include <X11/Xutil.h>
8
9class CScreenXLib : public CScreen
10{
11public:
12 explicit CScreenXLib(QObject *parent = nullptr);
13 virtual ~CScreenXLib();
14
15 // CScreen interface
16 virtual int Width() override;
17 virtual int Height() override;
18 virtual int VirtualTop() override;
19 virtual int VirtualLeft() override;
20 virtual int VirtualWidth() override;
21 virtual int VirtualHeight() override;
22 virtual int VisibleMonitorCount() override;
23 virtual QImage GetScreen(int index) override;
24
25private:
26 QImage::Format GetFormat(XImage* img);
27
28 XImage* m_pImage;
29};
30
31#endif // CSCREENXLIB_H
The CScreen class.
Definition Screen.h:14