Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
22
QT_BEGIN_NAMESPACE
23
24
class
QSGGeometryData
25
{
26
public
:
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
46
QT_END_NAMESPACE
47
48
#
endif
// QSGGEOMETRY_P_H
QSGGeometryData
Definition
qsggeometry_p.h:25
QSGGeometryData::install
static void install(const QSGGeometry *g, QSGGeometryData *data)
Definition
qsggeometry_p.h:33
QSGGeometryData::hasDirtyIndexData
static bool hasDirtyIndexData(const QSGGeometry *g)
Definition
qsggeometry_p.h:41
QSGGeometryData::~QSGGeometryData
virtual ~QSGGeometryData()
Definition
qsggeometry_p.h:27
QSGGeometryData::clearDirtyIndexData
static void clearDirtyIndexData(const QSGGeometry *g)
Definition
qsggeometry_p.h:42
QSGGeometryData::hasDirtyVertexData
static bool hasDirtyVertexData(const QSGGeometry *g)
Definition
qsggeometry_p.h:38
QSGGeometryData::clearDirtyVertexData
static void clearDirtyVertexData(const QSGGeometry *g)
Definition
qsggeometry_p.h:39
QSGGeometryData::data
static QSGGeometryData * data(const QSGGeometry *g)
Definition
qsggeometry_p.h:29
QSGGeometry
The QSGGeometry class provides low-level storage for graphics primitives in the \l{Qt Quick Scene Gra...
Definition
qsggeometry.h:16
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtdeclarative
src
quick
scenegraph
coreapi
qsggeometry_p.h
Generated on
for Qt by
1.18.0