用于显示从 CConnectDesktop 输出的图像,和向 CConnectDesktop 发送键盘、鼠标事件。
更多...
#include <FrmViewer.h>
|
void | sigMousePressEvent (QMouseEvent *event, QPoint pos) |
|
void | sigMouseReleaseEvent (QMouseEvent *event, QPoint pos) |
|
void | sigMouseMoveEvent (QMouseEvent *event, QPoint pos) |
|
void | sigMouseMoveEvent (QMouseEvent *event) |
|
void | sigWheelEvent (QWheelEvent *event, QPoint pos) |
|
void | sigKeyPressEvent (QKeyEvent *event) |
|
void | sigKeyReleaseEvent (QKeyEvent *event) |
|
void | sigServerName (const QString &szName) |
|
void | sigRecordVideo (const QImage &img) |
|
◆ ADAPT_WINDOWS
窗口适配枚举常量
枚举值 |
---|
Disable | 禁用适配窗口
|
Original | 原始桌面大小,桌面的左上点与窗口的左上点对齐
|
OriginalCenter | 原始桌面大小,桌面中心点与窗口中心点对齐
|
Zoom | 缩放窗口大小等于桌面大小 * 系数
|
ZoomToWindow | 桌面缩放到窗口大小,窗口是固定的
|
KeepAspectRationToWindow | 保持长宽比缩放到窗口大小,窗口是固定的
|
在文件 FrmViewer.h 第 61 行定义.
◆ LED_STATE
enum CFrmViewer::LED_STATE |
◆ ~CFrmViewer()
CFrmViewer::~CFrmViewer |
( |
| ) |
|
|
overridevirtual |
◆ GetAdaptWindows()
◆ GetAspectRationRect()
QRectF CFrmViewer::GetAspectRationRect |
( |
| ) |
|
|
private |
◆ GetDesktopSize()
QSize CFrmViewer::GetDesktopSize |
( |
| ) |
|
◆ GetZoomFactor()
double CFrmViewer::GetZoomFactor |
( |
| ) |
const |
调整缩放系数。 调整完成后需要调用 SetAdaptWindows(FrmViewer::Zoom) 缩放窗口大小。
在文件 FrmViewer.cpp 第 270 行定义.
◆ GrabImage()
QImage CFrmViewer::GrabImage |
( |
int |
x = 0 , |
|
|
int |
y = 0 , |
|
|
int |
w = -1 , |
|
|
int |
h = -1 |
|
) |
| |
|
virtual |
◆ keyPressEvent()
void CFrmViewer::keyPressEvent |
( |
QKeyEvent * |
event | ) |
|
|
overrideprotectedvirtual |
◆ keyReleaseEvent()
void CFrmViewer::keyReleaseEvent |
( |
QKeyEvent * |
event | ) |
|
|
overrideprotectedvirtual |
◆ mouseMoveEvent()
void CFrmViewer::mouseMoveEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotectedvirtual |
◆ mousePressEvent()
void CFrmViewer::mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotectedvirtual |
◆ mouseReleaseEvent()
void CFrmViewer::mouseReleaseEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotectedvirtual |
◆ paintDesktop()
void CFrmViewer::paintDesktop |
( |
| ) |
|
|
private |
◆ paintEvent()
void CFrmViewer::paintEvent |
( |
QPaintEvent * |
event | ) |
|
|
overrideprotectedvirtual |
◆ ReSize()
int CFrmViewer::ReSize |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
private |
◆ slotConnected
void CFrmViewer::slotConnected |
( |
| ) |
|
|
slot |
◆ slotRecordVideo
void CFrmViewer::slotRecordVideo |
( |
bool |
bRecord | ) |
|
|
slot |
◆ slotSetAdaptWindows
◆ slotSetDesktopSize
void CFrmViewer::slotSetDesktopSize |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
slot |
Update desktop size
- 参数
-
- 注解
- The plugin is use CConnectDesktop::sigSetDesktopSize
在文件 FrmViewer.cpp 第 317 行定义.
◆ slotSetName
void CFrmViewer::slotSetName |
( |
const QString & |
szName | ) |
|
|
slot |
◆ slotSetZoomFactor
int CFrmViewer::slotSetZoomFactor |
( |
double |
newZoomFactor | ) |
|
|
slot |
◆ slotSystemCombination
void CFrmViewer::slotSystemCombination |
( |
| ) |
|
|
slot |
◆ slotUpdateCursor
void CFrmViewer::slotUpdateCursor |
( |
const QCursor & |
cursor | ) |
|
|
slot |
◆ slotUpdateCursorPosition
void CFrmViewer::slotUpdateCursorPosition |
( |
const QPoint & |
pos | ) |
|
|
slot |
◆ slotUpdateLedState
void CFrmViewer::slotUpdateLedState |
( |
unsigned int |
state | ) |
|
|
slot |
◆ slotUpdateRect [1/2]
void CFrmViewer::slotUpdateRect |
( |
const QImage & |
image | ) |
|
|
slot |
◆ slotUpdateRect [2/2]
void CFrmViewer::slotUpdateRect |
( |
const QRect & |
r, |
|
|
const QImage & |
image |
|
) |
| |
|
slot |
◆ TranslationMousePoint()
int CFrmViewer::TranslationMousePoint |
( |
QPointF |
inPos, |
|
|
QPointF & |
outPos |
|
) |
| |
|
private |
◆ wheelEvent()
void CFrmViewer::wheelEvent |
( |
QWheelEvent * |
event | ) |
|
|
overrideprotectedvirtual |
◆ m_AdaptWindows
◆ m_bRecordVideo
bool CFrmViewer::m_bRecordVideo |
|
private |
◆ m_dbZoomFactor
double CFrmViewer::m_dbZoomFactor |
|
private |
◆ m_Desktop
QImage CFrmViewer::m_Desktop |
|
private |
◆ m_DesktopSize
QSize CFrmViewer::m_DesktopSize |
|
private |
◆ ZoomFactor
double CFrmViewer::ZoomFactor |
|
readwrite |
该类的文档由以下文件生成:
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Client/FrmViewer.h
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Client/FrmViewer.cpp