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

Classes |
|
| struct | SimpleData |
Public Types |
|
| enum | Type { StartEmbed = 1, StopEmbed = 2, Region = 4 } |
Public Member Functions |
|
| QWSEmbedEvent () | |
| void | setData (const char *d, int len, bool allocateMem=true) |
| void | setData (int winId, Type type, const QRegion ®=QRegion()) |
Public Attributes |
|
| struct QWSEmbedEvent::SimpleData | simpleData |
| QRegion | region |
| enum Type |
Reimplemented from QWSEvent.
Definition at line 275 of file qwsevent_qws.h.
{ StartEmbed = 1, StopEmbed = 2, Region = 4 };
| QWSEmbedEvent | ( | ) | [inline] |
Definition at line 271 of file qwsevent_qws.h.
: QWSEvent(QWSEvent::Embed, sizeof(simpleData),
reinterpret_cast<char*>(&simpleData))
{}
| void setData | ( | const char * | d, |
| int | len, | ||
| bool | allocateMem =
true |
||
| ) | [inline, virtual] |
Reimplemented from QWSProtocolItem.
Definition at line 277 of file qwsevent_qws.h.
{
QWSEvent::setData(d, len, allocateMem);
region.setRects(reinterpret_cast<const QRect *>(rawDataPtr),
simpleData.nrectangles);
}
Definition at line 283 of file qwsevent_qws.h.
{
simpleData.window = winId;
simpleData.nrectangles = reg.rects().size();
simpleData.type = type;
region = reg;
const QVector<QRect> rects = reg.rects();
QWSEvent::setData(reinterpret_cast<const char*>(rects.data()),
rects.size() * sizeof(QRect));
}
Definition at line 299 of file qwsevent_qws.h.