Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qsggeometry_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 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// Qt-Security score:significant reason:default
4
5#ifndef QSGGEOMETRY_P_H
6#define QSGGEOMETRY_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include "qsggeometry.h"
20#include "private/qglobal_p.h"
21
23
25{
26public:
27 virtual ~QSGGeometryData() {}
28
29 static inline QSGGeometryData *data(const QSGGeometry *g) {
30 return g->m_server_data;
31 }
32
33 static inline void install(const QSGGeometry *g, QSGGeometryData *data) {
34 Q_ASSERT(!g->m_server_data);
35 const_cast<QSGGeometry *>(g)->m_server_data = data;
36 }
37
38 static bool inline hasDirtyVertexData(const QSGGeometry *g) { return g->m_dirty_vertex_data; }
39 static void inline clearDirtyVertexData(const QSGGeometry *g) { const_cast<QSGGeometry *>(g)->m_dirty_vertex_data = false; }
40
41 static bool inline hasDirtyIndexData(const QSGGeometry *g) { return g->m_dirty_index_data; }
42 static void inline clearDirtyIndexData(const QSGGeometry *g) { const_cast<QSGGeometry *>(g)->m_dirty_index_data = false; }
43
44};
45
46QT_END_NAMESPACE
47
48#endif // QSGGEOMETRY_P_H
static void install(const QSGGeometry *g, QSGGeometryData *data)
static bool hasDirtyIndexData(const QSGGeometry *g)
virtual ~QSGGeometryData()
static void clearDirtyIndexData(const QSGGeometry *g)
static bool hasDirtyVertexData(const QSGGeometry *g)
static void clearDirtyVertexData(const QSGGeometry *g)
static QSGGeometryData * data(const QSGGeometry *g)
The QSGGeometry class provides low-level storage for graphics primitives in the \l{Qt Quick Scene Gra...
Definition qsggeometry.h:16
Combined button and popup list for selecting options.