Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qwidgetrepaintmanager.cpp File Reference
#include "qplatformdefs.h"
#include "qwidgetrepaintmanager_p.h"
#include <QtCore/qglobal.h>
#include <QtCore/qdebug.h>
#include <QtCore/qvarlengtharray.h>
#include <QtGui/qevent.h>
#include <QtWidgets/qapplication.h>
#include <QtGui/qpaintengine.h>
#include <private/qwidget_p.h>
#include <private/qapplication_p.h>
#include <private/qpaintengine_raster_p.h>
#include <QtGui/private/qwindow_p.h>
#include <QtGui/private/qhighdpiscaling_p.h>
#include <qpa/qplatformbackingstore.h>
#include "qwidgetrepaintmanager.moc"
#include "moc_qwidgetrepaintmanager_p.cpp"
+ Include dependency graph for qwidgetrepaintmanager.cpp:

Go to the source code of this file.

Classes

class  QPlatformTextureListWatcher
 

Functions

static QRect widgetRectFor (QWidget *, const QRect &r)
 
static QRect widgetRectFor (QWidget *widget, const QRegion &)
 
static bool hasPlatformWindow (QWidget *widget)
 
static void findTextureWidgetsRecursively (QWidget *tlw, QWidget *widget, QPlatformTextureList *widgetTextures, QList< QWidget * > *nativeChildren)
 
static void findAllTextureWidgetsRecursively (QWidget *tlw, QWidget *widget)
 
static QPlatformTextureListwidgetTexturesFor (QWidget *tlw, QWidget *widget)
 
static bool isDrawnInEffect (const QWidget *w)
 

Function Documentation

◆ findAllTextureWidgetsRecursively()

static void findAllTextureWidgetsRecursively ( QWidget tlw,
QWidget widget 
)
static

Definition at line 556 of file qwidgetrepaintmanager.cpp.

References findAllTextureWidgetsRecursively(), findTextureWidgetsRecursively(), QWidgetPrivate::get(), QPlatformTextureList::isEmpty(), QWidgetPrivate::textureChildSeen, QWidgetPrivate::topData(), widget, and QTLWExtra::widgetTextures.

Referenced by findAllTextureWidgetsRecursively().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ findTextureWidgetsRecursively()

static void findTextureWidgetsRecursively ( QWidget tlw,
QWidget widget,
QPlatformTextureList widgetTextures,
QList< QWidget * > *  nativeChildren 
)
static

Definition at line 534 of file qwidgetrepaintmanager.cpp.

References QList< T >::append(), QPlatformTextureList::appendTexture(), QList< T >::at(), QObjectData::children, QWidgetPrivate::clipRect(), findTextureWidgetsRecursively(), QWidgetPrivate::get(), hasPlatformWindow(), i, QWidget::mapTo(), qobject_cast< QWidget * >(), rect, QWidgetPrivate::renderToTexture, QList< T >::size(), QWidget::size, QWidgetPrivate::texture(), QWidgetPrivate::textureChildSeen, QWidgetPrivate::textureListFlags(), and widget.

Referenced by findAllTextureWidgetsRecursively(), and findTextureWidgetsRecursively().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hasPlatformWindow()

static bool hasPlatformWindow ( QWidget widget)
static

Definition at line 372 of file qwidgetrepaintmanager.cpp.

References widget, and QWidget::windowHandle().

Referenced by findTextureWidgetsRecursively(), QWidgetRepaintManager::markNeedsFlush(), QWidgetPrivate::moveRect(), QWidgetRepaintManager::sync(), and widgetTexturesFor().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isDrawnInEffect()

static bool isDrawnInEffect ( const QWidget w)
static

Definition at line 688 of file qwidgetrepaintmanager.cpp.

◆ widgetRectFor() [1/2]

static QRect widgetRectFor ( QWidget ,
const QRect r 
)
inlinestatic

Definition at line 153 of file qwidgetrepaintmanager.cpp.

Referenced by QWidgetRepaintManager::markDirty().

+ Here is the caller graph for this function:

◆ widgetRectFor() [2/2]

static QRect widgetRectFor ( QWidget widget,
const QRegion  
)
inlinestatic

Definition at line 154 of file qwidgetrepaintmanager.cpp.

References QWidget::rect, and widget.

◆ widgetTexturesFor()

static QPlatformTextureList * widgetTexturesFor ( QWidget tlw,
QWidget widget 
)
static

Definition at line 576 of file qwidgetrepaintmanager.cpp.

References QPlatformTextureList::count(), QWidgetPrivate::get(), hasPlatformWindow(), i, QPlatformTextureList::isEmpty(), Q_ASSERT, QPlatformTextureList::source(), QWidgetPrivate::textureChildSeen, QWidgetPrivate::topData(), widget, and QTLWExtra::widgetTextures.

Referenced by QWidgetRepaintManager::sync().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: