Definition at line 228 of file qwsevent_qws.h.
#include <qwsevent_qws.h>

Classes |
|
| struct | SimpleData |
Public Types |
|
| enum | Type { Allocation } |
Public Member Functions |
|
| QWSRegionEvent () | |
| void | setData (const char *d, int len, bool allocateMem=true) |
| void | setData (int winId, const QRegion ®ion, uint type) |
Public Attributes |
|
| struct QWSRegionEvent::SimpleData | simpleData |
| QRect * | rectangles |
| enum Type |
Reimplemented from QWSEvent.
Definition at line 251 of file qwsevent_qws.h.
{Allocation
#ifdef QT_QWS_CLIENTBLIT
, DirectPaint
#endif
};
| QWSRegionEvent | ( | ) | [inline] |
Definition at line 229 of file qwsevent_qws.h.
: QWSEvent(QWSEvent::Region, sizeof(simpleData),
reinterpret_cast<char*>(&simpleData))
{ memset(reinterpret_cast<char*>(&simpleData),0,sizeof(simpleData)); }
| void setData | ( | const char * | d, |
| int | len, | ||
| bool | allocateMem =
true |
||
| ) | [inline, virtual] |
Reimplemented from QWSProtocolItem.
Definition at line 234 of file qwsevent_qws.h.
{
QWSEvent::setData(d, len, allocateMem);
rectangles = reinterpret_cast<QRect*>(rawDataPtr);
}
| void setData | ( | int | winId, |
| const QRegion & | region, | ||
| uint | type | ||
| ) | [inline] |
Definition at line 239 of file qwsevent_qws.h.
{
const QVector<QRect> rects = region.rects();
setData(reinterpret_cast<const char*>(rects.constData()),
rects.size() * sizeof(QRect));
simpleData.window = winId;
simpleData.nrectangles = rects.size();
simpleData.type = type;
#ifdef QT_QWS_CLIENTBLIT
simpleData.id = 0;
#endif
}
Definition at line 265 of file qwsevent_qws.h.