18#include <QtCore/QObject>
19#include <QtCore/qabstractanimation.h>
20#include <QtCore/QMutex>
22#include <QtGui/QImage>
23#include <QtGui/QSurfaceFormat>
25#include <private/qtquickglobal_p.h>
26#include <private/qrawfont_p.h>
27#include <private/qfontengine_p.h>
29#include <QtQuick/qsgnode.h>
30#include <QtQuick/qsgrendererinterface.h>
31#include <QtQuick/qsgtextnode.h>
33#include <QtCore/qpointer.h>
37class QSGContextPrivate;
108#if QT_CONFIG(quick_sprite)
109 virtual QSGSpriteNode *createSpriteNode() = 0;
115 virtual QSize minimumFBOSize()
const;
129 static void setBackend(
const QString &backend);
138 CreateTexture_Alpha = 0x1,
139 CreateTexture_Atlas = 0x2,
140 CreateTexture_Mipmap = 0x4
151 virtual void invalidate();
155 virtual void prepareSync(
qreal devicePixelRatio,
162 void *callbackUserData);
166 virtual void endSync();
168 virtual void preprocess();
169 virtual void invalidateGlyphCaches();
183 virtual QRhi *rhi()
const;
191 void textureFactoryDestroyed(
QObject *
o);
222 return f1.faceId == f2.faceId
223 && f1.style == f2.style
224 && f1.weight == f2.weight
225 && f1.renderTypeQuality == f2.renderTypeQuality
226 && f1.familyName == f2.familyName
227 && f1.styleName == f2.styleName;
232 return qHashMulti(
seed,
f.faceId,
f.renderTypeQuality,
f.familyName,
f.styleName,
f.style,
f.weight);
The QColor class provides colors based on RGB, HSV or CMYK values.
Style
This enum describes the different styles of glyphs that are used to display text.
QQuickGraphicsConfiguration controls lower level graphics settings for the QQuickWindow.
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
The QQuickPaintedItem class provides a way to use the QPainter API in the QML Scene Graph.
The QQuickTextureFactory class provides an interface for loading custom textures from QML....
\qmltype Window \instantiates QQuickWindow \inqmlmodule QtQuick
The QRawFont class provides access to a single physical instance of a font.
\inmodule QtCore\reentrant
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
The QSGContext holds the scene graph entry points for one QML engine.
virtual QSGPainterNode * createPainterNode(QQuickPaintedItem *item)=0
virtual QSGInternalRectangleNode * createInternalRectangleNode()=0
virtual QSGInternalImageNode * createInternalImageNode(QSGRenderContext *renderContext)=0
virtual QSGRectangleNode * createRectangleNode()=0
virtual QSGRenderContext * createRenderContext()=0
virtual QSurfaceFormat defaultSurfaceFormat() const =0
virtual QSGLayer * createLayer(QSGRenderContext *renderContext)=0
virtual QSGNinePatchNode * createNinePatchNode()=0
virtual QSGImageNode * createImageNode()=0
virtual QSGGlyphNode * createGlyphNode(QSGRenderContext *rc, QSGTextNode::RenderType renderType, int renderTypeQuality)=0
The QSGImageNode class is provided for convenience to easily draw textured content using the QML scen...
The QSGMaterial class encapsulates rendering state for a shader program.
The QSGRectangleNode class is a convenience class for drawing solid filled rectangles using scenegrap...
QHash< QObject *, QSGTexture * > m_textures
virtual int maxTextureSize() const =0
virtual QSGTexture * createTexture(const QImage &image, uint flags=CreateTexture_Alpha) const =0
QHash< QFontEngine *, int > m_fontEnginesToClean
QPointer< QSGContext > m_sg
void(*)(void *) RenderPassCallback
virtual QSGRenderer * createRenderer(QSGRendererInterface::RenderMode renderMode=QSGRendererInterface::RenderMode2D)=0
QSGContext * sceneGraphContext() const
virtual void renderNextFrame(QSGRenderer *renderer)=0
void releaseCachedResourcesRequested()
QHash< FontKey, QSGDistanceFieldGlyphCache * > m_glyphCaches
QSet< QSGTexture * > m_texturesToDelete
virtual bool isValid() const
An interface providing access to some of the graphics API specific internals of the scenegraph.
RenderMode
\value RenderMode2D Normal 2D rendering \value RenderMode2DNoDepthBuffer Normal 2D rendering with dep...
The renderer class is the abstract baseclass used for rendering the QML scene graph.
The QSGTextNode class is a class for drawing text layouts and text documents in the Qt Quick scene gr...
RenderType
This enum type describes type of glyph node used for rendering the text.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char const char return DBusMessage return DBusMessage const char return DBusMessage dbus_bool_t return DBusMessage dbus_uint32_t return DBusMessage void
size_t qHash(const QFileSystemWatcherPathKey &key, size_t seed=0)
constexpr QtPrivate::QHashMultiReturnType< T... > qHashMulti(size_t seed, const T &... args) noexcept(std::conjunction_v< QtPrivate::QNothrowHashable< T >... >)
#define Q_DECLARE_LOGGING_CATEGORY(name)
static Q_CONSTINIT QBasicAtomicInteger< unsigned > seed
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
bool operator==(const QSGRenderContext::FontKey &f1, const QSGRenderContext::FontKey &f2)
size_t qHash(const QSGRenderContext::FontKey &f, size_t seed=0)
SSL_CTX int(* cb)(SSL *ssl, unsigned char **out, unsigned char *outlen, const unsigned char *in, unsigned int inlen, void *arg)
static QSvgNode * createTextNode(QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *handler)
QItemEditorFactory * factory
QSvgRenderer * renderer
[0]
QFontEngine::FaceId faceId