Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qwidgetrepaintmanager.cpp File Reference

(697e1b0397259959e3f555296f87a0d9d923e4b5)

#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 559 of file qwidgetrepaintmanager.cpp.

References findAllTextureWidgetsRecursively(), findTextureWidgetsRecursively(), QWidgetPrivate::get(), QPlatformTextureList::isEmpty(), and widget.

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 537 of file qwidgetrepaintmanager.cpp.

References 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::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 375 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 691 of file qwidgetrepaintmanager.cpp.

◆ widgetRectFor() [1/2]

static QRect widgetRectFor ( QWidget * ,
const QRect & r )
inlinestatic

Definition at line 152 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 153 of file qwidgetrepaintmanager.cpp.

References QWidget::rect, and widget.

◆ widgetTexturesFor()

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

Definition at line 579 of file qwidgetrepaintmanager.cpp.

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

Referenced by QWidgetRepaintManager::sync().

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