![]() |
NDEVR
API Documentation
|
A QWidget that renders the remote VNC framebuffer and forwards user input events (mouse, keyboard) to the VncDevice for transmission to the remote server. More...
Public Member Functions | |
| VncClientWidget (QWidget *parent=0) | |
| Constructs the VNC client widget. | |
| void | commit (const QRegion ®ion) |
| Commits updated regions of the framebuffer for display. | |
| bool | connectToVncServer (const StringView &ip, const StringView &password, int port=5900) |
| Connects to a VNC server at the given address. | |
| void | disconnectFromVncServer () |
| Disconnects from the VNC server. | |
| QImage * | imageToRender () |
| Returns the current framebuffer image for rendering. | |
| bool | isConnectedToServer () |
| Checks whether the client is connected to a VNC server. | |
| void | refreshTcpSize () |
| Sends a resize request to the associated TCP server. | |
| void | setMouse (const Vector< 2, uint04 > &hotspot, QImage mouse) |
| Sets the mouse cursor image and hotspot. | |
| void | setResizeTcpServer (TcpServer *server, fltp08 size_multiplier) |
| Associates a TCP server for dynamic window resizing. | |
| void | tryRefreshScreen (bool force_refresh_all) |
| Triggers a screen refresh, optionally forcing a full redraw. | |
A QWidget that renders the remote VNC framebuffer and forwards user input events (mouse, keyboard) to the VncDevice for transmission to the remote server.
Definition at line 122 of file VncClientWidget.h.
|
explicit |
Constructs the VNC client widget.
| [in] | parent | Optional parent widget. |
References VncClientWidget().
Referenced by VncClientWidget().
| void VncClientWidget::commit | ( | const QRegion & | region | ) |
Commits updated regions of the framebuffer for display.
| [in] | region | The dirty region that was updated. |
| bool VncClientWidget::connectToVncServer | ( | const StringView & | ip, |
| const StringView & | password, | ||
| int | port = 5900 ) |
Connects to a VNC server at the given address.
| [in] | ip | The server IP address or hostname. |
| [in] | password | The VNC authentication password. |
| [in] | port | The VNC port (default 5900). |
| QImage * VncClientWidget::imageToRender | ( | ) |
Returns the current framebuffer image for rendering.
| bool VncClientWidget::isConnectedToServer | ( | ) |
Checks whether the client is connected to a VNC server.
Sets the mouse cursor image and hotspot.
| [in] | hotspot | The cursor hotspot offset. |
| [in] | mouse | The cursor image. |
Associates a TCP server for dynamic window resizing.
| [in] | server | The resize TCP server. |
| [in] | size_multiplier | Scale factor for resize requests. |
| void VncClientWidget::tryRefreshScreen | ( | bool | force_refresh_all | ) |
Triggers a screen refresh, optionally forcing a full redraw.
| [in] | force_refresh_all | Whether to request a full framebuffer refresh. |