42 #ifndef QWINDOWSURFACE_P_H 43 #define QWINDOWSURFACE_P_H 56 #include <QtGui/qwidget.h> 72 PartialUpdates = 0x00000001,
73 PreservedContents = 0x00000002,
74 StaticContents = 0x00000004,
75 AllFeatures = 0xffffffff
91 #if !defined(Q_WS_QPA) 92 virtual void setGeometry(
const QRect &rect);
93 QRect geometry()
const;
95 virtual void resize(
const QSize &size);
100 virtual bool scroll(
const QRegion &
area,
int dx,
int dy);
102 virtual void beginPaint(
const QRegion &);
103 virtual void endPaint(
const QRegion &);
112 virtual WindowSurfaceFeatures features()
const;
114 void setStaticContents(
const QRegion ®ion);
115 QRegion staticContents()
const;
118 bool hasStaticContents()
const;
133 return (features() & feature) != 0;
138 #endif // QWINDOWSURFACE_P_H #define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
#define Q_DECLARE_FLAGS(Flags, Enum)
The Q_DECLARE_FLAGS() macro expands to.
QRect rect(const QWidget *widget) const
Returns the rectangle for widget in the coordinates of this window surface.
QRect translated(int dx, int dy) const
Returns a copy of the rectangle that is translated dx along the x axis and dy along the y axis...
#define QT_BEGIN_NAMESPACE
This macro expands to.
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
The Q_DECLARE_OPERATORS_FOR_FLAGS() macro declares global operator|() functions for Flags...
The QImage class provides a hardware-independent image representation that allows direct access to th...
The QRegion class specifies a clip region for a painter.
The QWindowSurface class provides the drawing area for top-level windows.
The QPoint class defines a point in the plane using integer precision.
The QRect class defines a rectangle in the plane using integer precision.
bool hasFeature(WindowSurfaceFeature feature) const
The QPixmap class is an off-screen image representation that can be used as a paint device...
Q_CORE_EXPORT QTextStream & flush(QTextStream &s)
The QSize class defines the size of a two-dimensional object using integer point precision.
QWindowSurfacePrivate * d_ptr
static int area(const QSize &s)