Qt 4.8
Public Functions | Public Variables | List of all members
QRfbRect Class Reference

#include <qscreenvnc_p.h>

Public Functions

 QRfbRect ()
 
 QRfbRect (quint16 _x, quint16 _y, quint16 _w, quint16 _h)
 
 QRfbRect ()
 
 QRfbRect (quint16 _x, quint16 _y, quint16 _w, quint16 _h)
 
void read (QTcpSocket *s)
 
void read (QTcpSocket *s)
 
void write (QTcpSocket *s) const
 
void write (QTcpSocket *s) const
 

Public Variables

quint16 h
 
quint16 w
 
quint16 x
 
quint16 y
 

Detailed Description

Definition at line 141 of file qscreenvnc_p.h.

Constructors and Destructors

◆ QRfbRect() [1/4]

QRfbRect::QRfbRect ( )
inline

Definition at line 144 of file qscreenvnc_p.h.

144 {}

◆ QRfbRect() [2/4]

QRfbRect::QRfbRect ( quint16  _x,
quint16  _y,
quint16  _w,
quint16  _h 
)
inline

Definition at line 145 of file qscreenvnc_p.h.

145  {
146  x = _x; y = _y; w = _w; h = _h;
147  }
quint16 x
Definition: qscreenvnc_p.h:152
quint16 h
Definition: qscreenvnc_p.h:155
quint16 w
Definition: qscreenvnc_p.h:154
quint16 y
Definition: qscreenvnc_p.h:153

◆ QRfbRect() [3/4]

QRfbRect::QRfbRect ( )
inline

Definition at line 146 of file qvncserver.h.

146 {}

◆ QRfbRect() [4/4]

QRfbRect::QRfbRect ( quint16  _x,
quint16  _y,
quint16  _w,
quint16  _h 
)
inline

Definition at line 147 of file qvncserver.h.

147  {
148  x = _x; y = _y; w = _w; h = _h;
149  }
quint16 x
Definition: qscreenvnc_p.h:152
quint16 h
Definition: qscreenvnc_p.h:155
quint16 w
Definition: qscreenvnc_p.h:154
quint16 y
Definition: qscreenvnc_p.h:153

Functions

◆ read() [1/2]

void QRfbRect::read ( QTcpSocket s)

Definition at line 361 of file qscreenvnc_qws.cpp.

362 {
363  quint16 buf[4];
364  s->read((char*)buf, 8);
365  x = ntohs(buf[0]);
366  y = ntohs(buf[1]);
367  w = ntohs(buf[2]);
368  h = ntohs(buf[3]);
369 }
quint16 x
Definition: qscreenvnc_p.h:152
qint64 read(char *data, qint64 maxlen)
Reads at most maxSize bytes from the device into data, and returns the number of bytes read...
Definition: qiodevice.cpp:791
unsigned short quint16
Definition: qglobal.h:936
quint16 h
Definition: qscreenvnc_p.h:155
quint16 w
Definition: qscreenvnc_p.h:154
quint16 y
Definition: qscreenvnc_p.h:153

◆ read() [2/2]

void QRfbRect::read ( QTcpSocket s)

◆ write() [1/2]

void QRfbRect::write ( QTcpSocket s) const

Definition at line 371 of file qscreenvnc_qws.cpp.

Referenced by QVNCDirtyMap::QVNCDirtyMap(), QRfbRawEncoder::write(), and QRfbHextileEncoder< SRC >::write().

372 {
373  quint16 buf[4];
374  buf[0] = htons(x);
375  buf[1] = htons(y);
376  buf[2] = htons(w);
377  buf[3] = htons(h);
378  s->write((char*)buf, 8);
379 }
quint16 x
Definition: qscreenvnc_p.h:152
unsigned short quint16
Definition: qglobal.h:936
quint16 h
Definition: qscreenvnc_p.h:155
quint16 w
Definition: qscreenvnc_p.h:154
quint16 y
Definition: qscreenvnc_p.h:153
qint64 write(const char *data, qint64 len)
Writes at most maxSize bytes of data from data to the device.
Definition: qiodevice.cpp:1342

◆ write() [2/2]

void QRfbRect::write ( QTcpSocket s) const

Properties

◆ h

quint16 QRfbRect::h

◆ w

quint16 QRfbRect::w

◆ x

quint16 QRfbRect::x

◆ y

quint16 QRfbRect::y

The documentation for this class was generated from the following files: