42 #ifndef QWINDOWSURFACE_QWS_P_H 43 #define QWINDOWSURFACE_QWS_P_H 61 #include <private/qwssharedmemory_p.h> 75 virtual bool isValid()
const = 0;
82 virtual bool move(
const QPoint &offset);
85 virtual QPoint painterOffset()
const;
90 virtual bool lock(
int timeout = -1);
91 virtual void unlock();
98 virtual void setTransientState(
const QByteArray &state);
99 virtual void setPermanentState(
const QByteArray &state);
101 virtual QImage image()
const = 0;
104 const QRegion clipRegion()
const;
105 void setClipRegion(
const QRegion &);
107 #ifdef QT_QWS_CLIENTBLIT 108 virtual const QRegion directRegion()
const;
109 virtual int directRegionId()
const;
110 virtual void setDirectRegion(
const QRegion &,
int);
114 RegionReserved = 0x1,
120 SurfaceFlags surfaceFlags()
const;
123 return surfaceFlags() & RegionReserved;
125 inline bool isBuffered()
const {
return surfaceFlags() & Buffered; }
126 inline bool isOpaque()
const {
return surfaceFlags() & Opaque; }
129 virtual void releaseSurface();
132 void setSurfaceFlags(SurfaceFlags
type);
133 void setWinId(
int id);
148 QWSWindowSurfacePrivate();
152 QWSWindowSurface::SurfaceFlags
flags;
154 #ifdef QT_QWS_CLIENTBLIT 181 bool lock(
int timeout = -1);
187 #ifndef QT_NO_QWS_MULTIPROCESS 188 void setLock(
int lockId);
217 #ifndef QT_NO_QWS_MULTIPROCESS 232 #ifdef QT_QWS_CLIENTBLIT 233 virtual void setDirectRegion(
const QRegion &,
int);
234 virtual const QRegion directRegion()
const;
239 bool setMemory(
int memId);
243 #endif // QT_NO_QWS_MULTIPROCESS 245 #ifndef QT_NO_PAINTONSCREEN 262 void attachToScreen(
const QScreen *screen);
266 #endif // QT_NO_PAINTONSCREEN 268 #ifndef QT_NO_PAINT_DEBUG 294 #endif // QT_NO_PAINT_DEBUG 296 #ifndef QT_NO_DIRECTPAINTER 311 void setRegion(
const QRegion ®ion);
332 bool lock(
int timeout = -1);
337 bool hasPendingRegionEvents()
const;
351 #endif // QT_NO_DIRECTPAINTER 355 #endif // QWINDOWSURFACE_QWS_P_H
The QWSWindowSurface class provides the drawing area for top-level windows in Qt for Embedded Linux...
Format
The following image formats are available in Qt.
QImage image() const
Implement this function to return an image of the top-level window.
bool isValid() const
Implement this function to return true if the surface is a valid surface for the given top-level wind...
#define QT_END_NAMESPACE
This macro expands to.
const QRegion clipRegion() const
Returns the region currently visible on the screen.
The QMutex class provides access serialization between threads.
QPointer< QWidget > widget
#define Q_DECLARE_FLAGS(Flags, Enum)
The Q_DECLARE_FLAGS() macro expands to.
The QByteArray class provides an array of bytes.
virtual QByteArray permanentState() const
Implement this function to return the data required for creating a server-side representation of the ...
void qt_directpainter_region(QDirectPainter *dp, const QRegion &alloc, int type)
QString key() const
Implement this function to return a string that uniquely identifies the class of this surface...
virtual void setGeometry(const QRect &rect)
Sets the currently allocated area to be the given rect.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
QPaintDevice * paintDevice()
Implement this function to return the appropriate paint device.
virtual void beginPaint(const QRegion &)
This function is called before painting onto the surface begins, with the region in which the paintin...
SurfaceFlag
This enum is used to describe the window surface's contents.
bool isBuffered() const
Returns true if the QWSWindowSurface::Buffered is set; otherwise returns false.
void setSurfaceFlags(SurfaceFlags type)
Sets the surface flags describing the contents of this surface, to be the given flags.
The QDirectPainter class provides direct access to the underlying hardware in Qt for Embedded Linux...
The QString class provides a Unicode character string.
QPaintDevice * paintDevice()
Implement this function to return the appropriate paint device.
QWSWindowSurface::SurfaceFlags flags
virtual bool lock(int timeout=-1)
QWSWindowSurfacePrivate * d_ptr
virtual void beginPaint(const QRegion &)
This function is called before painting onto the surface begins, with the region in which the paintin...
virtual void releaseSurface()
bool isValid() const
Implement this function to return true if the surface is a valid surface for the given top-level wind...
#define QT_BEGIN_NAMESPACE
This macro expands to.
QString key() const
Implement this function to return a string that uniquely identifies the class of this surface...
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
The Q_DECLARE_OPERATORS_FOR_FLAGS() macro declares global operator|() functions for Flags...
virtual void flush(QWidget *widget, const QRegion ®ion, const QPoint &offset)=0
Flushes the given region from the specified widget onto the screen.
QImage image() const
Implement this function to return an image of the top-level window.
The QImage class provides a hardware-independent image representation that allows direct access to th...
static const char * data(const QByteArray &arr)
The QRegion class specifies a clip region for a painter.
QImage image() const
Implement this function to return an image of the top-level window.
QPoint painterOffset() const
Returns the offset to be used when painting.
The QWindowSurface class provides the drawing area for top-level windows.
virtual bool isValid() const =0
Implement this function to return true if the surface is a valid surface for the given top-level wind...
QString key() const
Implement this function to return a string that uniquely identifies the class of this surface...
virtual QPoint painterOffset() const
Returns the offset to be used when painting.
virtual void endPaint(const QRegion &)
This function is called after painting onto the surface has ended, with the region in which the paint...
bool isOpaque() const
Returns true if the QWSWindowSurface::Opaque is set; otherwise returns false.
bool flushingRegionEvents
QPaintDevice * paintDevice()
Implement this function to return the appropriate paint device.
The QPoint class defines a point in the plane using integer precision.
bool isRegionReserved() const
Returns true if the QWSWindowSurface::RegionReserved is set; otherwise returns false.
static QReadWriteLock lock
The QRect class defines a rectangle in the plane using integer precision.
QString key() const
Implement this function to return a string that uniquely identifies the class of this surface...
SurfaceFlag
This enum describes the behavior of the region reserved by this QDirectPainter object.
The QScreen class is a base class for screen drivers in Qt for Embedded Linux.
virtual void flush(QWidget *widget, const QRegion ®ion, const QPoint &offset)
Flushes the given region from the specified widget onto the screen.
The QSize class defines the size of a two-dimensional object using integer point precision.
virtual void setPermanentState(const QByteArray &state)
Implement this function to attach a server-side surface instance to the corresponding client side ins...
bool isValid() const
Implement this function to return true if the surface is a valid surface for the given top-level wind...
QString key() const
Implement this function to return a string that uniquely identifies the class of this surface...
void setGeometry(const QRect &rect)
Sets the currently allocated area to be the given rect.
virtual bool scroll(const QRegion &area, int dx, int dy)
Scrolls the given area dx pixels to the right and dy downward; both dx and dy may be negative...
virtual void setGeometry(const QRect &rect)
Sets the currently allocated area to be the given rect.
virtual QPaintDevice * paintDevice()=0
Implement this function to return the appropriate paint device.
static int area(const QSize &s)