42 #ifndef QWSEVENT_QWS_H 43 #define QWSEVENT_QWS_H 45 #include <QtGui/qwsutils_qws.h> 46 #include <QtGui/qwsprotocolitem_qws.h> 47 #include <QtCore/qrect.h> 48 #include <QtGui/qregion.h> 49 #include <QtCore/qvector.h> 103 reinterpret_cast<char*>(&simpleData)) {}
105 void setData(
const char *
d,
int len,
bool allocateMem =
true) {
132 reinterpret_cast<char*>(&simpleData)) {}
143 { memset(reinterpret_cast<char*>(&simpleData),0,
sizeof(simpleData)); }
153 reinterpret_cast<char*>(&simpleData)) {}
168 reinterpret_cast<char*>(&simpleData)) {}
175 #ifndef QT_NO_QWS_PROPERTIES 179 reinterpret_cast<char*>(&simpleData)) {}
195 reinterpret_cast<char*>(&simpleData)) {}
204 reinterpret_cast<char*>(&simpleData)) {}
217 reinterpret_cast<char*>(&simpleData)) {}
231 reinterpret_cast<char*>(&simpleData))
232 { memset(reinterpret_cast<char*>(&simpleData),0,
sizeof(simpleData)); }
234 void setData(
const char *
d,
int len,
bool allocateMem =
true) {
243 simpleData.window = winId;
244 simpleData.nrectangles = rects.
size();
245 simpleData.type =
type;
246 #ifdef QT_QWS_CLIENTBLIT 252 #ifdef QT_QWS_CLIENTBLIT 259 #ifdef QT_QWS_CLIENTBLIT 268 #ifndef QT_NO_QWSEMBEDWIDGET 272 reinterpret_cast<char*>(&simpleData))
277 void setData(
const char *
d,
int len,
bool allocateMem =
true) {
279 region.setRects(reinterpret_cast<const QRect *>(
rawDataPtr),
280 simpleData.nrectangles);
284 simpleData.window = winId;
285 simpleData.nrectangles = reg.rects().size();
286 simpleData.type =
type;
301 #endif // QT_NO_QWSEMBEDWIDGET 303 #ifndef QT_NO_QWS_PROPERTIES 307 reinterpret_cast<char*>(&simpleData)) {}
309 void setData(
const char *
d,
int len,
bool allocateMem =
true) {
321 #endif //QT_NO_QWS_PROPERTIES 327 reinterpret_cast<char*>(&simpleData))
328 { memset(reinterpret_cast<char*>(&simpleData),0,
sizeof(simpleData)); }
330 void setData(
const char *
d,
int len,
bool allocateMem =
true) {
334 p += simpleData.lchannel;
336 p += simpleData.lmessage;
370 #ifndef QT_NO_QWS_INPUTMETHODS 375 :
QWSEvent(
IMEvent, sizeof(simpleData), reinterpret_cast<char*>(&simpleData))
376 { memset(reinterpret_cast<char*>(&simpleData),0,
sizeof(simpleData)); }
384 void setData(
const char *
d,
int len,
bool allocateMem =
true) {
394 :
QWSEvent(
IMInit, sizeof(simpleData), reinterpret_cast<char*>(&simpleData))
395 { memset(reinterpret_cast<char*>(&simpleData),0,
sizeof(simpleData)); }
402 void setData(
const char *
d,
int len,
bool allocateMem =
true) {
413 reinterpret_cast<char*>(&simpleData)) {}
427 reinterpret_cast<char*>(&simpleData)) {}
433 void setData(
const char *
d,
int len,
bool allocateMem =
true) {
447 reinterpret_cast<char*>(&simpleData)) {}
459 #endif // QWSEVENT_QWS_H
QWSWindowOperationEvent()
#define QT_END_NAMESPACE
This macro expands to.
void setData(const char *d, int len, bool allocateMem=true)
virtual void setData(const char *data, int len, bool allocateMem=true)
The QByteArray class provides an array of bytes.
QWSMouseEvent * asMouse()
void setData(const char *d, int len, bool allocateMem=true)
void setData(const char *d, int len, bool allocateMem=true)
The QWSEvent class encapsulates an event in Qt for Embedded Linux.
#define QT_BEGIN_NAMESPACE
This macro expands to.
Q_GUI_EXPORT EGLDisplay display()
Qt::KeyboardModifiers modifiers
static QByteArray fromRawData(const char *, int size)
Constructs a QByteArray that uses the first size bytes of the data array.
void setData(const char *d, int len, bool allocateMem=true)
static const char * data(const QByteArray &arr)
void setData(const char *d, int len, bool allocateMem=true)
The QRegion class specifies a clip region for a painter.
const T * ptr(const T &t)
The State element defines configurations of objects and properties.
Type
This enum describes the origin of the event.
void setData(const char *d, int len, bool allocateMem=true)
QWSSelectionRequestEvent()
void setData(int winId, Type type, const QRegion ®=QRegion())
void setData(int winId, const QRegion ®ion, uint type)
void setData(const char *d, int len, bool allocateMem=true)
static QWSEvent * factory(int type)
void setData(const char *d, int len, bool allocateMem=true)
QVector< QRect > rects() const
Returns an array of non-overlapping rectangles that make up the region.
The QRect class defines a rectangle in the plane using integer precision.
QWSEvent(int t, int len, char *ptr)
T * data()
Returns a pointer to the data stored in the vector.
const T * constData() const
Returns a const pointer to the data stored in the vector.
void setDataDirect(const char *d, int len)
int size() const
Returns the number of items in the vector.
QWSSelectionNotifyEvent()