Rabbit Remote Control
0.0.30
Loading...
Searching...
No Matches
Service
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
9
class
CScreenXLib
:
public
CScreen
10
{
11
public
:
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
25
private
:
26
QImage::Format GetFormat(XImage* img);
27
28
XImage* m_pImage;
29
};
30
31
#endif
// CSCREENXLIB_H
CScreenXLib
Definition
ScreenXLib.h:10
CScreen
The CScreen class.
Definition
Screen.h:14
作者:康林 (kl222@126.com)
版权所有(c) 康林工作室 保留所有权力