玉兔远程控制 0.1.0-bate11
载入中...
搜索中...
未找到
CursorFreeRDP.h
1// Author: Kang Lin <kl222@126.com>
2
3#ifndef CCURSOR_H
4#define CCURSOR_H
5
6#include <QImage>
7#include <QRect>
8#include <QObject>
9#include "freerdp/version.h"
10#include "freerdp/freerdp.h"
11
12class CBackendFreeRDP;
13class CCursorFreeRDP : public QObject
14{
15 Q_OBJECT
16public:
17 explicit CCursorFreeRDP(CBackendFreeRDP *parent = nullptr);
18
19 int RegisterPointer(rdpGraphics* graphics);
20 struct _Pointer{
21 rdpPointer pointer;
22 CCursorFreeRDP* pThis;
23 };
24
25 static BOOL CbPointerNew(rdpContext* context, rdpPointer* pointer);
26 static void CbPointerFree(rdpContext* context, rdpPointer* pointer);
27 static BOOL CbPointerSet(rdpContext* context,
28 #if FREERDP_VERSION_MAJOR >= 3
29 rdpPointer* pointer
30 #else
31 const rdpPointer* pointer
32 #endif
33 );
34 static BOOL CbPointerSetNull(rdpContext* context);
35 static BOOL CbPointerSetDefault(rdpContext* context);
36 static BOOL CbPointerSetPosition(rdpContext* context, UINT32 x, UINT32 y);
37
38 BOOL OnNew(rdpContext* context, rdpPointer* pointer);
39 void OnFree(rdpContext* context, rdpPointer* pointer);
40 BOOL OnSet(rdpContext* context, const rdpPointer* pointer);
41 BOOL OnSetNull(rdpContext* context);
42 BOOL OnSetDefault(rdpContext* context);
43 BOOL OnSetPosition(rdpContext* context, UINT32 x, UINT32 y);
44
45private:
46 CBackendFreeRDP* m_pConnect;
47
48 QImage m_Cursor;
49};
50
51#endif // CCURSOR_H
BOOL OnNew(rdpContext *context, rdpPointer *pointer)
BOOL OnSet(rdpContext *context, const rdpPointer *pointer)