42 #ifndef QBACKINGSTORE_P_H 43 #define QBACKINGSTORE_P_H 57 #include <QtGui/qwidget.h> 58 #include <private/qwidget_p.h> 59 #include <private/qwindowsurface_p.h> 61 #include <private/qwindowsurface_qws_p.h> 93 return !(dirtyWidgets.isEmpty() && dirty.isEmpty() && !hasDirtyFromPreviousSync
95 #if defined(Q_WS_QWS) && !defined(QT_NO_QWS_MANAGER) 96 && !hasDirtyWindowDecoration()
102 void markDirty(
const QRegion &rgn,
QWidget *widget,
bool updateImmediately =
false,
103 bool invalidateBuffer =
false);
104 void markDirty(
const QRect &rect,
QWidget *widget,
bool updateImmediately =
false,
105 bool invalidateBuffer =
false);
116 #ifdef Q_BACKINGSTORE_SUBSURFACES 127 bool bltRect(
const QRect &rect,
int dx,
int dy,
QWidget *widget);
128 void releaseBuffer();
131 BeginPaintInfo *returnInfo,
bool toCleanIsInTopLevelCoordinates =
true);
137 void markDirtyOnScreen(
const QRegion &dirtyOnScreen,
QWidget *widget,
const QPoint &topLevelOffset);
139 void removeDirtyWidget(
QWidget *w);
141 #if defined(Q_WS_QWS) && !defined(QT_NO_QWS_MANAGER) 142 bool hasDirtyWindowDecoration()
const;
143 void paintWindowDecoration();
145 void updateLists(
QWidget *widget);
151 #ifndef QT_NO_GRAPHICSEFFECT 155 #endif //QT_NO_GRAPHICSEFFECT 156 widgetPrivate->
dirty = rgn;
157 dirtyWidgets.
append(widget);
165 while (i < dirtyWidgets.
size()) {
179 if (!staticWidgets.
contains(widget))
180 staticWidgets.
append(widget);
196 while (i < staticWidgets.
size()) {
222 if (!dirtyOnScreenWidgets) {
224 dirtyOnScreenWidgets->
append(widget);
225 }
else if (!dirtyOnScreenWidgets->
contains(widget)) {
226 dirtyOnScreenWidgets->
append(widget);
232 if (!widget || !dirtyOnScreenWidgets)
236 while (i < dirtyOnScreenWidgets->size()) {
237 if (dirtyOnScreenWidgets->
at(i) ==
widget)
238 dirtyOnScreenWidgets->
remove(i);
247 widget->d_func()->inDirtyList =
false;
248 widget->d_func()->isScrolled =
false;
249 widget->d_func()->isMoved =
false;
250 widget->d_func()->dirty =
QRegion();
256 for (
int i = 0; i < staticWidgets.
size(); ++i) {
270 friend class QWSManagerPrivate;
278 #endif // QBACKINGSTORE_P_H
The QWSWindowSurface class provides the drawing area for top-level windows in Qt for Embedded Linux...
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
void remove(int i)
Removes the element at index position i.
QRegion qt_dirtyRegion(QWidget *)
QRect boundingRect() const
Returns the bounding rectangle of this region.
The QVector class is a template class that provides a dynamic array.
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
void append(const T &t)
Inserts value at the end of the list.
#define QT_BEGIN_NAMESPACE
This macro expands to.
uint windowSurfaceRecreated
QBool contains(const T &t) const
Returns true if the list contains an occurrence of value; otherwise returns false.
QSize size() const
Returns the size of the rectangle.
const T & at(int i) const
Returns the item at index position i in the list.
void append(const T &t)
Inserts value at the end of the vector.
The QRegion class specifies a clip region for a painter.
The QWindowSurface class provides the drawing area for top-level windows.
const T & at(int i) const
Returns the item at index position i in the vector.
The QPoint class defines a point in the plane using integer precision.
int size() const
Returns the number of items in the list.
The QRect class defines a rectangle in the plane using integer precision.
#define Q_AUTOTEST_EXPORT
bool contains(const T &t) const
Returns true if the vector contains an occurrence of value; otherwise returns false.
bool hasFeature(WindowSurfaceFeature feature) const
Q_CORE_EXPORT QTextStream & flush(QTextStream &s)
int size() const
Returns the number of items in the vector.
int removeAll(const T &t)
Removes all occurrences of value in the list and returns the number of entries removed.
void removeAt(int i)
Removes the item at index position i.