玉兔远程控制
0.1.0-bate11
Toggle main menu visibility
载入中...
搜索中...
未找到
Plugins
FreeRDP
Client
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
12
class
CBackendFreeRDP
;
13
class
CCursorFreeRDP :
public
QObject
14
{
15
Q_OBJECT
16
public
:
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
45
private
:
46
CBackendFreeRDP
* m_pConnect;
47
48
QImage m_Cursor;
49
};
50
51
#endif
// CCURSOR_H
CBackendFreeRDP
定义
BackendFreeRDP.h:26
CCursorFreeRDP::OnNew
BOOL OnNew(rdpContext *context, rdpPointer *pointer)
定义
CursorFreeRDP.cpp:80
CCursorFreeRDP::OnSet
BOOL OnSet(rdpContext *context, const rdpPointer *pointer)
定义
CursorFreeRDP.cpp:117
CCursorFreeRDP::_Pointer
定义
CursorFreeRDP.h:20
作者:康林 (kl222@126.com)
版权所有(c) 康林工作室 保留所有权力