|
玉兔远程控制 0.1.0-bate11
|
用于显示从 CConnectDesktop 输出的图像,和向 CConnectDesktop 发送键盘、鼠标事件。 更多...
#include <FrmViewer.h>


Public 类型 | |
| enum class | ADAPT_WINDOWS { Disable = 0 , Auto = 1 , Original = 2 , OriginalCenter = 3 , Zoom = 4 , ZoomToWindow = 5 , KeepAspectRationToWindow = 6 } |
| 窗口适配枚举常量 更多... | |
| enum | LED_STATE { Unknown = -1 , ScrollLock = 1 , NumLock = 1 << 1 , CapsLock = 1 << 2 } |
Public 槽 | |
| void | slotSetAdaptWindows (CFrmViewer::ADAPT_WINDOWS aw=ADAPT_WINDOWS::Original) |
| int | slotSetZoomFactor (double newZoomFactor) |
| void | slotSetDesktopSize (int width, int height) |
| Update desktop size | |
| void | slotSetName (const QString &szName) |
| Update desktop name | |
| void | slotUpdateRect (const QRect &r, const QImage &image) |
| Update image | |
| void | slotUpdateRect (const QImage &image) |
| void | slotUpdateCursor (const QCursor &cursor) |
| Update cursor | |
| void | slotUpdateCursorPosition (const QPoint &pos) |
| Update cursor position | |
| void | slotUpdateLedState (unsigned int state) |
| void | slotRunning () |
| Enable mouse and keyboard | |
| void | slotEnableInputMethod (bool bEnable) |
| Enable input method | |
| void | slotRecordVideo (bool bRecord, qreal nRate=0) |
| void | slotRecordVideo () |
Public 成员函数 | |
| CFrmViewer (QWidget *parent=nullptr) | |
| ADAPT_WINDOWS | GetAdaptWindows () |
| double | GetZoomFactor () const |
| 调整缩放系数。 调整完成后需要调用 SetAdaptWindows(FrmViewer::Zoom) 缩放窗口大小。 | |
| QSize | GetDesktopSize () |
| virtual QImage | GrabImage (int x=0, int y=0, int w=-1, int h=-1) |
Protected 成员函数 | |
| virtual void | paintEvent (QPaintEvent *event) override |
| virtual void | focusInEvent (QFocusEvent *event) override |
| virtual void | focusOutEvent (QFocusEvent *event) override |
| virtual void | mousePressEvent (QMouseEvent *event) override |
| virtual void | mouseReleaseEvent (QMouseEvent *event) override |
| virtual void | mouseMoveEvent (QMouseEvent *event) override |
| virtual void | wheelEvent (QWheelEvent *event) override |
| virtual void | keyPressEvent (QKeyEvent *event) override |
| virtual void | keyReleaseEvent (QKeyEvent *event) override |
| virtual void | inputMethodEvent (QInputMethodEvent *event) override |
| virtual QVariant | inputMethodQuery (Qt::InputMethodQuery query) const override |
属性 | |
| double | ZoomFactor |
Private 成员函数 | |
| int | ReSize (int width, int height) |
| void | paintDesktop () |
| int | PointToRemote (const QPointF &inPos, QPointF &outPos) |
| int | PointFromRemote (const QPointF &inPos, QPointF &outPos) |
| QRectF | GetAspectRationRect () |
Private 属性 | |
| QImage | m_Desktop |
| QSize | m_DesktopSize |
| ADAPT_WINDOWS | m_AdaptWindows |
| double | m_dbZoomFactor |
| QTimer | m_TimerRecordVideo |
| bool | m_bRecordVideo |
用于显示从 CConnectDesktop 输出的图像,和向 CConnectDesktop 发送键盘、鼠标事件。
在文件 FrmViewer.h 第 47 行定义.
|
strong |
窗口适配枚举常量
| 枚举值 | |
|---|---|
| Disable | 禁用适配窗口 |
| Original | 原始桌面大小,桌面的左上点与窗口的左上点对齐 |
| OriginalCenter | 原始桌面大小,桌面中心点与窗口中心点对齐 |
| Zoom | 缩放窗口大小等于桌面大小 * 系数 |
| ZoomToWindow | 桌面缩放到窗口大小,窗口是固定的 |
| KeepAspectRationToWindow | 保持长宽比缩放到窗口大小,窗口是固定的 |
在文件 FrmViewer.h 第 60 行定义.
| enum CFrmViewer::LED_STATE |
在文件 FrmViewer.h 第 89 行定义.
|
explicit |
在文件 FrmViewer.cpp 第 27 行定义.
|
overridevirtual |
在文件 FrmViewer.cpp 第 56 行定义.
|
overrideprotectedvirtual |
在文件 FrmViewer.cpp 第 651 行定义.
|
overrideprotectedvirtual |
在文件 FrmViewer.cpp 第 657 行定义.
| CFrmViewer::ADAPT_WINDOWS CFrmViewer::GetAdaptWindows | ( | ) |
在文件 FrmViewer.cpp 第 392 行定义.
|
private |
在文件 FrmViewer.cpp 第 61 行定义.
| QSize CFrmViewer::GetDesktopSize | ( | ) |
在文件 FrmViewer.cpp 第 345 行定义.
| double CFrmViewer::GetZoomFactor | ( | ) | const |
调整缩放系数。 调整完成后需要调用 SetAdaptWindows(FrmViewer::Zoom) 缩放窗口大小。
在文件 FrmViewer.cpp 第 350 行定义.
|
virtual |
在文件 FrmViewer.cpp 第 615 行定义.
|
overrideprotectedvirtual |
在文件 FrmViewer.cpp 第 300 行定义.
|
overrideprotectedvirtual |
在文件 FrmViewer.cpp 第 314 行定义.
|
overrideprotectedvirtual |
在文件 FrmViewer.cpp 第 286 行定义.
|
overrideprotectedvirtual |
在文件 FrmViewer.cpp 第 293 行定义.
|
overrideprotectedvirtual |
在文件 FrmViewer.cpp 第 250 行定义.
|
overrideprotectedvirtual |
在文件 FrmViewer.cpp 第 210 行定义.
|
overrideprotectedvirtual |
在文件 FrmViewer.cpp 第 233 行定义.
|
private |
在文件 FrmViewer.cpp 第 89 行定义.
|
overrideprotectedvirtual |
在文件 FrmViewer.cpp 第 133 行定义.
|
private |
在文件 FrmViewer.cpp 第 179 行定义.
|
private |
在文件 FrmViewer.cpp 第 141 行定义.
|
private |
在文件 FrmViewer.cpp 第 364 行定义.
|
slot |
Enable input method
在文件 FrmViewer.cpp 第 339 行定义.
|
slot |
在文件 FrmViewer.cpp 第 646 行定义.
|
slot |
在文件 FrmViewer.cpp 第 625 行定义.
|
slot |
Enable mouse and keyboard
在文件 FrmViewer.cpp 第 410 行定义.
|
slot |
在文件 FrmViewer.cpp 第 372 行定义.
|
slot |
Update desktop size
| width | |
| height |
在文件 FrmViewer.cpp 第 397 行定义.
|
slot |
|
slot |
在文件 FrmViewer.cpp 第 355 行定义.
|
slot |
|
slot |
|
slot |
在文件 FrmViewer.cpp 第 530 行定义.
|
slot |
在文件 FrmViewer.cpp 第 421 行定义.
|
slot |
|
overrideprotectedvirtual |
在文件 FrmViewer.cpp 第 271 行定义.
|
private |
在文件 FrmViewer.h 第 181 行定义.
|
private |
在文件 FrmViewer.h 第 200 行定义.
|
private |
在文件 FrmViewer.h 第 182 行定义.
|
private |
在文件 FrmViewer.h 第 178 行定义.
|
private |
在文件 FrmViewer.h 第 179 行定义.
|
private |
在文件 FrmViewer.h 第 199 行定义.
|
readwrite |
在文件 FrmViewer.h 第 50 行定义.