Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qquickshapecurvenode_p_p.h
Go to the documentation of this file.
1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQUICKSHAPECURVENODE_P_P_H
5#define QQUICKSHAPECURVENODE_P_P_H
6
7#include <QtQuick/qsgmaterial.h>
8
9//
10// W A R N I N G
11// -------------
12//
13// This file is not part of the Qt API. It exists for the convenience
14// of a number of Qt sources files. This header file may change from
15// version to version without notice, or even be removed.
16//
17// We mean it.
18//
19
21
24{
25public:
27 int compare(const QSGMaterial *other) const override;
28
30 {
31 return m_node;
32 }
33
34private:
35 QSGMaterialType *type() const override;
37
39};
40
42
43#endif // QQUICKSHAPECURVENODE_P_P_H
int compare(const QSGMaterial *other) const override
Compares this material to other and returns 0 if they are equal; -1 if this material should sort befo...
QQuickShapeCurveNode * node() const
QSGMaterialShader * createShader(QSGRendererInterface::RenderMode renderMode) const override
This function returns a new instance of a the QSGMaterialShader implementation used to render geometr...
QSGMaterialType * type() const override
This function is called by the scene graph to query an identifier that is unique to the QSGMaterialSh...
The QSGMaterialShader class represents a graphics API independent shader program.
The QSGMaterial class encapsulates rendering state for a shader program.
Definition qsgmaterial.h:15
RenderMode
\value RenderMode2D Normal 2D rendering \value RenderMode2DNoDepthBuffer Normal 2D rendering with dep...
Combined button and popup list for selecting options.
QSharedPointer< T > other(t)
[5]
The QSGMaterialType class is used as a unique type token in combination with QSGMaterial.