13class SERVICE_EXPORT
CScreen :
public QObject
17 CScreen(QObject* parent =
nullptr) : QObject(parent),
18 m_Format(QImage::Format_Invalid),
25 virtual int Width() = 0;
26 virtual int Height() = 0;
28 virtual int VirtualTop() = 0;
29 virtual int VirtualLeft() = 0;
30 virtual int VirtualWidth() = 0;
31 virtual int VirtualHeight() = 0;
36 virtual int VisibleMonitorCount() = 0;
38 virtual QImage GetScreen(
int index = 0) = 0;
39 virtual QImage::Format GetFormat(
int index = 0)
43 virtual int SetFormat(QImage::Format f = QImage::Format_ARGB32)
49 bool HasCursor(){
return m_bCursor;}
50 void SetHasCursor(
bool bHas){m_bCursor = bHas;}
53 void sigUpdate(QImage screen);
57 QImage::Format m_Format;